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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1551
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include "Func.h"
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #include "Scheduler.h"
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 #include "GpuScheduler.h"
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 #ifndef __CERIUM_GPU__
1566
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents: 1558
diff changeset
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
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 SchedExternTask(butterfly);
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 #endif // not __CERIUM_GPU__
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 void
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 task_init(void)
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 {
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 #else
1566
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents: 1558
diff changeset
26 SchedRegisterTask(SET_ID,setid);
1551
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 SchedRegisterTask(BIT_REVERSE, bitReverse);
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 SchedRegisterTask(BUTTERFLY, butterfly);
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 SchedRegisterTask(TRANSEPOSE, transpose);
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 SchedRegisterTask(HIGH_PASS_FILTER, highPassFilter);
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 #endif
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 }