comparison TaskManager/Gpu/GpuScheduler.h @ 1506:a7895ab4d0e3 draft

add flip flag and NDRange flag
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Mon, 10 Sep 2012 15:04:39 +0900
parents 756aa0f08814
children 0e1318e7caed
comparison
equal deleted inserted replaced
1505:0ad321ee074d 1506:a7895ab4d0e3
2 #define INCLUDED_GPU_SCHEDULER 2 #define INCLUDED_GPU_SCHEDULER
3 3
4 #include "Scheduler.h" 4 #include "Scheduler.h"
5 #include "FifoDmaManager.h" 5 #include "FifoDmaManager.h"
6 #include "GpuThreads.h" 6 #include "GpuThreads.h"
7 #include "HTask.h"
7 8
8 #ifdef __APPLE__ 9 #ifdef __APPLE__
9 #include <OpenCL/opencl.h> 10 #include <OpenCL/opencl.h>
10 #else 11 #else
11 #include <CL/cl.h> 12 #include <CL/cl.h>
12 #endif 13 #endif
13 14
14
15 class GpuScheduler : public Scheduler { 15 class GpuScheduler : public Scheduler {
16 public: 16 public:
17 GpuScheduler(); 17 GpuScheduler();
18 18 virtual ~GpuScheduler();
19 void init_impl(int useRefDma); 19 void init_impl(int useRefDma);
20 void init_gpu(); 20 void init_gpu();
21 void run(); 21 void run();
22 22
23 void mail_write_from_host(memaddr data) { 23 void mail_write_from_host(memaddr data) {