[clfft] 05/16: fix for problems with skinny 2d sizes as reported in #159

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Sep 1 07:42:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clfft.

commit d233154786307cd102ec1f7ba135e173d2a45fcb
Author: bragadeesh <bragadeesh.natarajan at amd>
Date:   Tue Aug 9 14:07:39 2016 -0700

    fix for problems with skinny 2d sizes as reported in #159
---
 src/library/plan.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/library/plan.cpp b/src/library/plan.cpp
index 19e50dc..0344fec 100644
--- a/src/library/plan.cpp
+++ b/src/library/plan.cpp
@@ -816,7 +816,7 @@ clfftStatus	clfftBakePlan( clfftPlanHandle plHandle, cl_uint numQueues, cl_comma
 					if (fftPlan->inStride[0] != 1 || fftPlan->outStride[0] != 1) break;
 
 					if ( IsPo2(fftPlan->length[0]) &&
-						 (fftPlan->length[0] <= 262144/PrecisionWidth(fftPlan->precision)) &&
+						 (fftPlan->length[0] <= 262144/PrecisionWidth(fftPlan->precision)) && (fftPlan->length.size() <= 1) &&
 						 (!clfftGetRequestLibNoMemAlloc() || (fftPlan->placeness == CLFFT_OUTOFPLACE)) ) break;
 
 					if ( clLengths[0]<=32 && clLengths[1]<=32) break;
@@ -897,6 +897,8 @@ clfftStatus	clfftBakePlan( clfftPlanHandle plHandle, cl_uint numQueues, cl_comma
 						transGen = Transpose_SQUARE;
 					}
 
+					if (fftPlan->tmpBufSize != 0)
+						padding = 0;
 
 					if ( (fftPlan->tmpBufSize==0 ) && !fftPlan->allOpsInplace)
 					{

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list