[clfft] 101/107: fixing RC bugs that caused 2d/3d fails
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 30 18:06:42 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 40517b299a7337c229853bd5f534502a9788ee69
Author: bnataraj <bragadeesh.natarajan at amd.com>
Date: Sat Jul 11 02:13:31 2015 -0500
fixing RC bugs that caused 2d/3d fails
---
src/library/plan.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/library/plan.cpp b/src/library/plan.cpp
index f56d12d..8a2b4ec 100644
--- a/src/library/plan.cpp
+++ b/src/library/plan.cpp
@@ -797,18 +797,17 @@ clfftStatus clfftBakePlan( clfftPlanHandle plHandle, cl_uint numQueues, cl_comma
// For real transforms
// Special case optimization with 5-step algorithm
if( (fftPlan->inputLayout == CLFFT_REAL) && IsPo2(fftPlan->length[0])
- && (fftPlan->inStride[0] == 1) && (fftPlan->outStride[0] == 1) )
+ && (fftPlan->inStride[0] == 1) && (fftPlan->outStride[0] == 1)
+ && (fftPlan->length[0] > 4096) && (fftPlan->length.size() == 1) )
{
- if(fftPlan->length[0] == 8192)
+ if( (fftPlan->length[0] == 8192) )
{
size_t tmp = length0;
clLengths[0] = length0 = length1;
clLengths[1] = length1 = tmp;
}
- if (fftPlan->length.size() > 1) break;
- if (fftPlan->inStride[0] != 1 || fftPlan->outStride[0] != 1) 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