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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1738
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include "Func.h"
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 SchedExternTask(QuickSort);
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 SchedExternTask(SortSimple);
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 void
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 task_init(void)
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 {
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 SchedRegisterTask(QUICK_SORT, QuickSort);
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
893353c014f5 run sort by ANY_ANY
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 }