# HG changeset patch # User kkb # Date 1385086229 -32400 # Node ID c1711deae8c55bf0ea643839a29063bb396f088a # Parent 537707f376c8796c98073c358144f081e200288b remove fft/output.pgm diff -r 537707f376c8 -r c1711deae8c5 example/fft/gpu/spinFact.cl --- a/example/fft/gpu/spinFact.cl Fri Nov 22 02:49:43 2013 +0900 +++ b/example/fft/gpu/spinFact.cl Fri Nov 22 11:10:29 2013 +0900 @@ -1,5 +1,5 @@ -#define PI 3.14159265358979323846 -#define PI_2 1.57079632679489661923 +#define PI 3.14159265358979323846f +#define PI_2 1.57079632679489661923f __kernel void spinFact(__constant long *param, __global float2 *w) @@ -7,9 +7,9 @@ unsigned long i = (unsigned long)get_global_id(0); long n =param[3]; - double2 angle; - angle.x = (double)(2*i*PI/(double)n); - angle.y = (double)((2*i*PI/(double)n) + PI_2); + float2 angle; + angle.x = (float)(2*i*PI/(float)n); + angle.y = (float)((2*i*PI/(float)n) + PI_2); w[i].x = cos((float)angle.x); w[i].y = cos((float)angle.y); diff -r 537707f376c8 -r c1711deae8c5 example/fft/output.pgm Binary file example/fft/output.pgm has changed