diff example/fft/task_init.cc @ 1558:69ded0c49aef draft

add fft ppe example
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Sat, 09 Mar 2013 21:21:56 +0900
parents 21ddbc06dcde
children 7d307bac94a6
line wrap: on
line diff
--- a/example/fft/task_init.cc	Sat Mar 09 21:15:23 2013 +0900
+++ b/example/fft/task_init.cc	Sat Mar 09 21:21:56 2013 +0900
@@ -3,29 +3,28 @@
 #include "GpuScheduler.h"
 
 #ifndef __CERIUM_GPU__
-SchedExternTask(spinfact);
-SchedExternTask(bitreverse);
-SchedExternTask(normalization);
+SchedExternTask(spinFact);
+SchedExternTask(bitReverse);
+SchedExternTask(norm);
 SchedExternTask(butterfly);
 SchedExternTask(transpose);
-SchedExternTask(highpassfilter);
+SchedExternTask(highPassFilter);
 #endif // not __CERIUM_GPU__
 
 void
 task_init(void)
 {
 #ifdef __CERIUM_GPU__
-    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(TRANSEPOSE, "gpu/transpose.cl", "transpose");
-    GpuSchedRegister(HIGH_PASS_FILTER, "gpu/passFilter.cl", "highPassFilter");
+    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(QUICK_SORT, QuickSort);
     SchedRegisterTask(SPIN_FACT,spinFact);
+    SchedRegisterTask(NORMALIZATION, norm);
     SchedRegisterTask(BIT_REVERSE, bitReverse);
-    SchedRegisterTask(NORMALIZATION, norm);
     SchedRegisterTask(BUTTERFLY, butterfly);
     SchedRegisterTask(TRANSEPOSE, transpose);
     SchedRegisterTask(HIGH_PASS_FILTER, highPassFilter);