[clfft] 16/128: adjusting the const multipliers

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Oct 22 14:54:33 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 8339cd39179f81145905020146f104f777173b00
Author: bragadeesh <bragadeesh.natarajan at amd>
Date:   Fri Aug 14 11:24:22 2015 -0500

    adjusting the const multipliers
---
 src/client/client.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/client/client.cpp b/src/client/client.cpp
index 9be77d0..052d326 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -546,7 +546,14 @@ int transform( size_t* lengths, const size_t *inStrides, const size_t *outStride
 
 		size_t totalLen = 1;
 		for(int i=0; i<dim; i++) totalLen *= lengths[i];
-		double opsconst = 5.0 * (double)totalLen * log((double)totalLen) / log(2.0);
+
+		double constMultiplier = 1.0;
+		if( (in_layout == CLFFT_REAL ) || (out_layout == CLFFT_REAL) )
+			constMultiplier = 2.5;
+		else
+			constMultiplier = 5.0;
+
+		double opsconst = constMultiplier * (double)totalLen * log((double)totalLen) / log(2.0);
 
 
 		tout << "\nExecution wall time: " << 1000.0*wtime << " ms" << std::endl;

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