Mercurial > hg > Game > Cerium
annotate example/flip/task_init.cc @ 2050:26dd777ba95d draft
add User API
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Jan 2016 15:43:36 +0900 |
parents | 273de551f726 |
children |
rev | line source |
---|---|
1515 | 1 #include "GpuFunc.h" |
2 #include "GpuScheduler.h" | |
1960
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
3 #include "CudaScheduler.h" |
1515 | 4 |
5 void | |
6 task_init(void) | |
7 { | |
1960
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
8 #ifdef __CERIUM_GPU__ |
1544
5c4e3f0d372a
many_task add task array
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1515
diff
changeset
|
9 GpuSchedRegister(Twice, "twice.cl", "twice"); |
1960
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
10 #endif |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
11 #ifdef __CERIUM_CUDA__ |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
12 CudaSchedRegister(Twice, "twice.ptx", "twice"); |
273de551f726
use multiple command_queue
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
13 #endif |
1515 | 14 } |