Mercurial > hg > Game > Cerium
annotate example/multiply/ppe/task_init.cc @ 1728:0ae49bff30e9 draft
fix makefile
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 30 Oct 2013 19:10:49 +0900 |
parents | 9e4d2827d804 |
children |
rev | line source |
---|---|
1556
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 #include "Func.h" |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 #include "Scheduler.h" |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 /* 必ずこの位置に書いて */ |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 SchedExternTask(Multiply); |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 /** |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 * この関数は ../spe/spe-main と違って |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 * 自分で呼び出せばいい関数なので |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 * 好きな関数名でおk (SchedRegisterTask は必須) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 */ |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 void |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 task_init(void) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 { |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 SchedRegisterTask(MULTIPLY_TASK, Multiply); |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 } |
1728 | 17 #ifndef __CERIUM_GPU__ |
1726
9e4d2827d804
add gpu_task_init()
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1556
diff
changeset
|
18 void |
9e4d2827d804
add gpu_task_init()
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1556
diff
changeset
|
19 gpu_task_init(void) |
9e4d2827d804
add gpu_task_init()
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1556
diff
changeset
|
20 { |
9e4d2827d804
add gpu_task_init()
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1556
diff
changeset
|
21 // nop |
9e4d2827d804
add gpu_task_init()
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1556
diff
changeset
|
22 } |
1728 | 23 #endif |