Mercurial > hg > Game > Cerium
annotate TaskManager/Gpu/GpuScheduler.h @ 1438:3c787a21ff10 draft
add GpuScheduler::run()
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 07 Apr 2012 11:25:06 +0900 |
parents | 42057124fb44 |
children | e8ff87511f46 |
rev | line source |
---|---|
1434 | 1 #ifndef INCLUDED_GPU_SCHEDULER |
2 #define INCLUDED_GPU_SCHEDULER | |
3 | |
4 #include "Scheduler.h" | |
5 | |
6 #ifdef __APPLE__ | |
7 #include <OpenCL/opencl.h> | |
8 #else | |
9 #include <CL/cl.h> | |
10 #endif | |
11 | |
12 class GpuScheduler : public Scheduler { | |
13 public: | |
14 void init_impl(int useRefDma); | |
1438
3c787a21ff10
add GpuScheduler::run()
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1436
diff
changeset
|
15 int run(); |
1434 | 16 |
17 private: | |
18 | |
19 }; | |
20 | |
21 #endif | |
1435
9f6ba00ca15c
add gpu_sched_register
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1434
diff
changeset
|
22 |
9f6ba00ca15c
add gpu_sched_register
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1434
diff
changeset
|
23 #define GpuSchedRegister(str, filename, functionname) \ |
9f6ba00ca15c
add gpu_sched_register
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1434
diff
changeset
|
24 gpu_register_task(str, filename, functionname); |