Mercurial > hg > Game > Cerium
changeset 1713:76f3fac74971 draft
add
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Oct 2013 18:35:04 +0900 |
parents | d32d5659695a |
children | 996d216c837a |
files | example/fft/task_init.cc example/fft/task_init.cc.orig |
diffstat | 2 files changed, 32 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example/fft/task_init.cc Tue Oct 08 18:35:04 2013 +0900 @@ -0,0 +1,32 @@ +#include "Func.h" +#include "Scheduler.h" +#include "GpuScheduler.h" + +#ifndef __CERIUM_GPU__ +SchedExternTask(spinFact); +SchedExternTask(bitReverse); +SchedExternTask(norm); +SchedExternTask(butterfly); +SchedExternTask(transpose); +SchedExternTask(highPassFilter); +#endif // not __CERIUM_GPU__ + +void +task_init(void) +{ +#ifdef __CERIUM_GPU__ + GpuSchedRegister(SPIN_FACT, "gpu/fft.cl", "spinFact"); + GpuSchedRegister(BIT_REVERSE, "gpu/fft.cl", "bitReverse"); + GpuSchedRegister(NORMALIZATION, "gpu/fft.cl", "norm"); + GpuSchedRegister(BUTTERFLY, "gpu/fft.cl", "butterfly"); + GpuSchedRegister(TRANSPOSE, "gpu/fft.cl", "transpose"); + GpuSchedRegister(HIGH_PASS_FILTER, "gpu/fft.cl", "highPassFilter"); +#else + SchedRegisterTask(SPIN_FACT,spinFact); + SchedRegisterTask(NORMALIZATION, norm); + SchedRegisterTask(BIT_REVERSE, bitReverse); + SchedRegisterTask(BUTTERFLY, butterfly); + SchedRegisterTask(TRANSPOSE, transpose); + SchedRegisterTask(HIGH_PASS_FILTER, highPassFilter); +#endif +}
--- a/example/fft/task_init.cc.orig Tue Oct 08 18:05:11 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" - -#ifndef __CERIUM_GPU__ -SchedExternTask(spinFact); -SchedExternTask(bitReverse); -SchedExternTask(norm); -SchedExternTask(butterfly); -SchedExternTask(transpose); -SchedExternTask(highPassFilter); -#endif // not __CERIUM_GPU__ - -void -task_init(void) -{ -#ifdef __CERIUM_GPU__ - GpuSchedRegister(SPIN_FACT, "gpu/fft.cl", "spinFact"); - GpuSchedRegister(BIT_REVERSE, "gpu/fft.cl", "bitReverse"); - GpuSchedRegister(NORMALIZATION, "gpu/fft.cl", "norm"); - GpuSchedRegister(BUTTERFLY, "gpu/fft.cl", "butterfly"); - GpuSchedRegister(TRANSEPOSE, "gpu/fft.cl", "transpose"); - GpuSchedRegister(HIGH_PASS_FILTER, "gpu/fft.cl", "highPassFilter"); -#else - SchedRegisterTask(SPIN_FACT,spinFact); - SchedRegisterTask(NORMALIZATION, norm); - SchedRegisterTask(BIT_REVERSE, bitReverse); - SchedRegisterTask(BUTTERFLY, butterfly); - SchedRegisterTask(TRANSEPOSE, transpose); - SchedRegisterTask(HIGH_PASS_FILTER, highPassFilter); -#endif -}