Mercurial > hg > Game > Cerium
annotate example/fft/task_init.cc @ 1592:afcb4a3f3526 draft
merge
author | Masa <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Apr 2013 18:00:35 +0900 |
parents | 7d307bac94a6 |
children | 6c0b6947c231 |
rev | line source |
---|---|
1551 | 1 #include "Func.h" |
2 #include "Scheduler.h" | |
3 #include "GpuScheduler.h" | |
4 | |
5 #ifndef __CERIUM_GPU__ | |
1566 | 6 SchedExternTask(setid); |
1558
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
7 SchedExternTask(spinFact); |
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
8 SchedExternTask(bitReverse); |
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
9 SchedExternTask(norm); |
1551 | 10 SchedExternTask(butterfly); |
11 SchedExternTask(transpose); | |
1558
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
12 SchedExternTask(highPassFilter); |
1551 | 13 #endif // not __CERIUM_GPU__ |
14 | |
15 void | |
16 task_init(void) | |
17 { | |
18 #ifdef __CERIUM_GPU__ | |
1558
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
19 GpuSchedRegister(SPIN_FACT, "gpu/fft.cl", "spinFact"); |
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
20 GpuSchedRegister(BIT_REVERSE, "gpu/fft.cl", "bitReverse"); |
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
21 GpuSchedRegister(NORMALIZATION, "gpu/fft.cl", "norm"); |
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
22 GpuSchedRegister(BUTTERFLY, "gpu/fft.cl", "butterfly"); |
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
23 GpuSchedRegister(TRANSEPOSE, "gpu/fft.cl", "transpose"); |
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
24 GpuSchedRegister(HIGH_PASS_FILTER, "gpu/fft.cl", "highPassFilter"); |
1551 | 25 #else |
1566 | 26 SchedRegisterTask(SET_ID,setid); |
1551 | 27 SchedRegisterTask(SPIN_FACT,spinFact); |
1558
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1553
diff
changeset
|
28 SchedRegisterTask(NORMALIZATION, norm); |
1551 | 29 SchedRegisterTask(BIT_REVERSE, bitReverse); |
30 SchedRegisterTask(BUTTERFLY, butterfly); | |
31 SchedRegisterTask(TRANSEPOSE, transpose); | |
32 SchedRegisterTask(HIGH_PASS_FILTER, highPassFilter); | |
33 #endif | |
34 } |