[clfft] 91/128: Mixed radices with Radix 7 values tests for Pre-callback
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Oct 22 14:54: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 ed43c5fa7ace1cb1a3cd8b31344ce4a422e2d2a1
Author: Pradeep <pradeep.rao at amd.com>
Date: Mon Sep 28 12:44:19 2015 +0530
Mixed radices with Radix 7 values tests for Pre-callback
---
src/tests/accuracy_test_mixed_precallback.cpp | 30 +++++++++++++++++----------
1 file changed, 19 insertions(+), 11 deletions(-)
diff --git a/src/tests/accuracy_test_mixed_precallback.cpp b/src/tests/accuracy_test_mixed_precallback.cpp
index fe82051..0ecbd8e 100644
--- a/src/tests/accuracy_test_mixed_precallback.cpp
+++ b/src/tests/accuracy_test_mixed_precallback.cpp
@@ -62,8 +62,8 @@ public:
Supported_Fft_Sizes_precallback()
: max_mixed_radices_to_test( 4096 )
{
- size_t i=0, j=0, k=0;
- size_t sum, sumi, sumj, sumk;
+ size_t i=0, j=0, k=0, l=0;
+ size_t sum, sumi, sumj, sumk, suml;
sumi = 1; i = 0;
while(1)
@@ -74,22 +74,30 @@ public:
sumk = 1; k = 0;
while(1)
{
- sum = (sumi*sumj*sumk);
- if( sum > max_mixed_radices_to_test ) break;
-
- sizes.push_back(sum);
+ suml = 1; l = 0;
+ while(1)
+ {
+ sum = (sumi*sumj*sumk*suml);
+ if( sum > max_mixed_radices_to_test ) break;
+
+ sizes.push_back(sum);
+ l++;
+ suml *= 2;
+ }
+
+ if(l == 0) break;
k++;
- sumk *= 2;
+ sumk *= 3;
}
- if(k == 0) break;
+ if( (k == 0) && (l == 0) ) break;
j++;
- sumj *= 3;
+ sumj *= 5;
}
- if( (j == 0) && (k == 0) ) break;
+ if( (j == 0) && (k == 0) && (l == 0) ) break;
i++;
- sumi *= 5;
+ sumi *= 7;
}
}
} supported_sizes_precallback;
--
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