[clfft] 66/107: fix

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 30 18:06:37 UTC 2015


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

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

commit 997be1788eb538cbce79714e60c3976edd51c0cc
Author: bragadeesh <bragadeesh.natarajan at amd>
Date:   Thu Apr 2 19:35:59 2015 -0500

    fix
---
 src/library/plan.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/library/plan.cpp b/src/library/plan.cpp
index 3251af2..09417f8 100644
--- a/src/library/plan.cpp
+++ b/src/library/plan.cpp
@@ -606,7 +606,8 @@ clfftStatus	clfftBakePlan( clfftPlanHandle plHandle, cl_uint numQueues, cl_comma
 					if (fftPlan->length.size() > 1) break;
 					if (fftPlan->inStride[0] != 1 || fftPlan->outStride[0] != 1) break;
 
-					if (fftPlan->length[0] <= 1048576/PrecisionWidth(fftPlan->precision)) break;
+					if ( IsPo2(fftPlan->length[0])
+						&& (fftPlan->length[0] <= 1048576/PrecisionWidth(fftPlan->precision)) ) break;
 
 
 					ARG_CHECK(clLengths[0] <= Large1DThreshold);

-- 
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