# HG changeset patch # User Yuhi TOMARI # Date 1383221336 -32400 # Node ID 6acaf7f6ad97f9a5c911d4b7d8523772d67f3d22 # Parent dc7dd1eaf6def7bd57c9863d06816d0bab9a1bf8 minor fix diff -r dc7dd1eaf6de -r 6acaf7f6ad97 example/fft/main.cc --- a/example/fft/main.cc Thu Oct 31 21:07:30 2013 +0900 +++ b/example/fft/main.cc Thu Oct 31 21:08:56 2013 +0900 @@ -251,7 +251,7 @@ hpfl->set_inData(0,rm,length_r*sizeof(cl_float2)); hpfl->set_outData(0, rm, length_r*sizeof(cl_float2)); hpfl->set_param(3,n); - hpfl->set_param(4,radius); + hpfl->set_param(4,&radius); hpfl->set_cpu(spe_cpu); hpfl->wait_for(waitTask); hpfl->iterate(gws[0],gws[1]); diff -r dc7dd1eaf6de -r 6acaf7f6ad97 example/fft/task_init.cc --- a/example/fft/task_init.cc Thu Oct 31 21:07:30 2013 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -#include "Func.h" -#include "Scheduler.h" -#include "GpuScheduler.h" - -SchedExternTask(spinFact); -SchedExternTask(bitReverse); -SchedExternTask(norm); -SchedExternTask(butterfly); -SchedExternTask(transpose); -SchedExternTask(highPassFilter); - -void -task_init(void) -{ - SchedRegisterTask(SPIN_FACT,spinFact); - SchedRegisterTask(NORMALIZATION, norm); - SchedRegisterTask(BIT_REVERSE, bitReverse); - SchedRegisterTask(BUTTERFLY, butterfly); - SchedRegisterTask(TRANSPOSE, transpose); - SchedRegisterTask(HIGH_PASS_FILTER, highPassFilter); -} - -void -gpu_task_init() -{ - GpuSchedRegister(SPIN_FACT, "gpu/spinFact.cl", "spinFact"); - GpuSchedRegister(BIT_REVERSE, "gpu/bitReverse.cl", "bitReverse"); - GpuSchedRegister(NORMALIZATION, "gpu/norm.cl", "norm"); - GpuSchedRegister(BUTTERFLY, "gpu/butterfly.cl", "butterfly"); - GpuSchedRegister(TRANSPOSE, "gpu/transpose.cl", "transpose"); - GpuSchedRegister(HIGH_PASS_FILTER, "gpu/highPassFilter.cl", "highPassFilter"); -}