Mercurial > hg > Game > Cerium
annotate TaskManager/Gpu/GpuScheduler.h @ 1471:e8db2e2d426c draft
fix not working yet.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Jul 2012 19:25:28 +0900 |
parents | e8ff87511f46 |
children | beda5f2f88ce |
rev | line source |
---|---|
1434 | 1 #ifndef INCLUDED_GPU_SCHEDULER |
2 #define INCLUDED_GPU_SCHEDULER | |
3 | |
4 #include "Scheduler.h" | |
1447 | 5 #include "FifoDmaManager.h" |
1434 | 6 |
7 #ifdef __APPLE__ | |
8 #include <OpenCL/opencl.h> | |
9 #else | |
10 #include <CL/cl.h> | |
11 #endif | |
12 | |
13 class GpuScheduler : public Scheduler { | |
14 public: | |
1471 | 15 GpuScheduler(); |
16 | |
1434 | 17 void init_impl(int useRefDma); |
1447 | 18 void run(); |
19 | |
20 void mail_write_from_host(memaddr data) { | |
21 fifoDmaManager->mail_write_from_host(data); | |
22 } | |
23 | |
24 memaddr mail_read_from_host() { | |
25 return fifoDmaManager->mail_read_from_host(); | |
26 } | |
27 | |
28 int has_mail_from_host() { | |
29 return fifoDmaManager->has_mail_from_host(); | |
30 } | |
1434 | 31 |
32 private: | |
1447 | 33 FifoDmaManager *fifoDmaManager; |
1434 | 34 }; |
35 | |
36 #endif | |
1435
9f6ba00ca15c
add gpu_sched_register
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1434
diff
changeset
|
37 |
9f6ba00ca15c
add gpu_sched_register
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1434
diff
changeset
|
38 #define GpuSchedRegister(str, filename, functionname) \ |
9f6ba00ca15c
add gpu_sched_register
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1434
diff
changeset
|
39 gpu_register_task(str, filename, functionname); |