Mercurial > hg > Game > Cerium
annotate example/many_task/ppe/task_init.cc @ 2032:dae9dc8d1d8f draft
Fix Makefile in linux
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 16 Dec 2014 15:53:39 +0900 |
parents | 273de551f726 |
children |
rev | line source |
---|---|
1738 | 1 #include "Func.h" |
2 #include "Scheduler.h" | |
1960
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
3 #ifdef __CERIUM_CUDA__ |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
4 #include "CudaScheduler.h" |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
5 #endif |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
6 |
1738 | 7 |
8 SchedExternTask(QuickSort); | |
9 SchedExternTask(SortSimple); | |
10 SchedExternTask(SortCompat); | |
1854
c21bd32e20b9
fix sort with task array ( wrong result )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1779
diff
changeset
|
11 SchedExternTask(SortTaskArray); |
1738 | 12 |
13 void | |
14 task_init(void) | |
15 { | |
16 SchedRegisterTask(QUICK_SORT, QuickSort); | |
17 SchedRegister(SortSimple); | |
2032
dae9dc8d1d8f
Fix Makefile in linux
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1960
diff
changeset
|
18 // SchedRegister(SortCompat); |
1854
c21bd32e20b9
fix sort with task array ( wrong result )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1779
diff
changeset
|
19 SchedRegister(SortTaskArray); |
1960
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
20 |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
21 #ifdef __CERIUM_CUDA__ |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
22 CudaSchedRegister(QUICK_SORT, "cuda/QuickSort.ptx", "quick_sort"); |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1854
diff
changeset
|
23 #endif |
1738 | 24 } |