[clfft] 21/32: fixing bug in 3-step twiddling

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Apr 26 08:34:10 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 ee40518f7475dc6fa181786940f9d7196eed5f06
Author: bragadeesh <bragadeesh.natarajan at amd>
Date:   Wed Apr 6 17:03:48 2016 -0700

    fixing bug in 3-step twiddling
---
 src/library/generator.stockham.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/library/generator.stockham.cpp b/src/library/generator.stockham.cpp
index 928e50a..4f95416 100644
--- a/src/library/generator.stockham.cpp
+++ b/src/library/generator.stockham.cpp
@@ -2044,7 +2044,7 @@ namespace StockhamGenerator
 			fft_postCallback = postcallbackParam;
 		}
 
-		void GeneratePass(	bool fwd, std::string &passStr, bool fft_3StepTwiddle,
+		void GeneratePass(	bool fwd, std::string &passStr, bool fft_3StepTwiddle, bool twiddleFront,
 							bool inInterleaved, bool outInterleaved,
 							bool inReal, bool outReal,
 							size_t inStride, size_t outStride, double scale,
@@ -2514,7 +2514,7 @@ namespace StockhamGenerator
 
 			// 3-step twiddle multiplies done in the front
 			bool tw3Done = false;
-			if(fft_3StepTwiddle && (position == 0))
+			if(fft_3StepTwiddle && twiddleFront)
 			{
 				tw3Done = true;
 				if(linearRegs)
@@ -3427,7 +3427,7 @@ namespace StockhamGenerator
 						if((p+1) != passes.end())	{ outIlvd = ldsInterleaved; }
 					}
 
-					p->GeneratePass(fwd, str, tw3Step, inIlvd, outIlvd, inRl, outRl, ins, outs, s, gIn, gOut);
+					p->GeneratePass(fwd, str, tw3Step, params.fft_twiddleFront, inIlvd, outIlvd, inRl, outRl, ins, outs, s, gIn, gOut);
 				}
 
 				// if real transform we do only 1 direction

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