changeset 1674:614c60736bfd draft

fix fft
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Mon, 22 Jul 2013 18:56:50 +0900
parents 2c3adce7eb40
children 07ff7ec2a61b
files example/fft/ppe/bitReverse.cc example/fft/ppe/butterfly.cc example/fft/ppe/norm.cc
diffstat 3 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/example/fft/ppe/bitReverse.cc	Thu Jul 18 17:16:43 2013 +0900
+++ b/example/fft/ppe/bitReverse.cc	Mon Jul 22 18:56:50 2013 +0900
@@ -20,9 +20,7 @@
     unsigned long m = (unsigned long)s->get_param(3);
     unsigned long n = (unsigned long)s->get_param(4);
     unsigned int j = gid;
-    if(nid == 100) {
-        printf("bitReverse nid=%ld,gid=%ld,n=%ld\n",nid,gid,n);
-    }    
+
     j = (j & 0x55555555) << 1 | (j & 0xAAAAAAAA) >> 1;
     j = (j & 0x33333333) << 2 | (j & 0xCCCCCCCC) >> 2;
     j = (j & 0x0F0F0F0F) << 4 | (j & 0xF0F0F0F0) >> 4;
--- a/example/fft/ppe/butterfly.cc	Thu Jul 18 17:16:43 2013 +0900
+++ b/example/fft/ppe/butterfly.cc	Mon Jul 22 18:56:50 2013 +0900
@@ -34,9 +34,7 @@
     int l = butterflyGrpNum * butterflyGrpOffset;
 
     cl_float2 xa, xb, xbxx, xbyy, wab, wayx, wbyx, resa, resb;
-    if(nid == 100) {
-        printf("butterfly nid=%ld,gid=%ld,n=%ld,iter=%ld\n",nid,gid,n,iter);
-    }
+
     xa = x_in[a];
     xb = x_in[b];
     xbxx.x = xbxx.y = xb.x;
--- a/example/fft/ppe/norm.cc	Thu Jul 18 17:16:43 2013 +0900
+++ b/example/fft/ppe/norm.cc	Mon Jul 22 18:56:50 2013 +0900
@@ -18,9 +18,7 @@
     unsigned long nid = s->y; //(unsigned long)s->get_param(1);
 
     long n = (long)s->get_param(3);
-    if(nid == 100) {
-        printf("norm nid=%ld,gid=%ld,n=%ld\n",nid,gid,n);
-    }
+
     out_x[nid*n+gid].x = in_x[nid*n+gid].x / (float)n;
     out_x[nid*n+gid].y = in_x[nid*n+gid].y / (float)n;