Mercurial > hg > Game > Cerium
changeset 1732:6acaf7f6ad97 draft
minor fix
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 31 Oct 2013 21:08:56 +0900 |
parents | dc7dd1eaf6de |
children | 91b690b27066 |
files | example/fft/main.cc example/fft/task_init.cc |
diffstat | 2 files changed, 1 insertions(+), 33 deletions(-) [+] |
line wrap: on
line diff
--- 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]);
--- 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"); -}