comparison example/fft/main.cc @ 1581:8ee897303cd0 draft

fix multi_dimention
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Sat, 30 Mar 2013 18:29:54 +0900
parents 7418c7aef534
children 6ff0c34c8a3c
comparison
equal deleted inserted replaced
1580:806b4658ced6 1581:8ee897303cd0
101 brev->set_outData(0, dst, length_dst*sizeof(cl_float2)); 101 brev->set_outData(0, dst, length_dst*sizeof(cl_float2));
102 brev->set_cpu(spe_cpu); 102 brev->set_cpu(spe_cpu);
103 brev->spawn(); 103 brev->spawn();
104 } 104 }
105 } 105 }
106 106 exit(0);
107 HTask* bfly; 107 HTask* bfly;
108 setWorkSize(gws,lws,n[0]/2,n[0]); 108 setWorkSize(gws,lws,n[0]/2,n[0]);
109 109
110 for (iter=1; iter<=m_;iter++) { 110 for (iter=1; iter<=m_;iter++) {
111 for(i=0;i<gws[0];i++){ 111 for(i=0;i<gws[0];i++){
217 sfac->set_outData(0, wm, length_w*sizeof(cl_float2)); 217 sfac->set_outData(0, wm, length_w*sizeof(cl_float2));
218 sfac->set_cpu(spe_cpu); 218 sfac->set_cpu(spe_cpu);
219 sfac->nd_range(); 219 sfac->nd_range();
220 sfac->spawn(); 220 sfac->spawn();
221 } 221 }
222 // Butterfly Operation 222 // Butterfly Operation
223 fftCore(manager, rm, xm, wm, m[0], forward); 223 fftCore(manager, rm, xm, wm, m[0], forward);
224 224
225 HTaskPtr *trns = (HTask**)manager->allocate(sizeof(HTask*)*2); 225 HTaskPtr *trns = (HTask**)manager->allocate(sizeof(HTask*)*2);
226 226
227 // Transpose matrix 227 // Transpose matrix