diff TaskManager/Gpu/GpuScheduler.h @ 1434:05d480ab70ba draft

add GpuScheduler
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Thu, 05 Apr 2012 19:05:35 +0900
parents
children 9f6ba00ca15c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TaskManager/Gpu/GpuScheduler.h	Thu Apr 05 19:05:35 2012 +0900
@@ -0,0 +1,25 @@
+#ifndef INCLUDED_GPU_SCHEDULER
+#define INCLUDED_GPU_SCHEDULER
+
+#include "Scheduler.h"
+
+#ifdef __APPLE__
+#include <OpenCL/opencl.h>
+#else
+#include <CL/cl.h>
+#endif
+
+class GpuScheduler : public Scheduler {
+public:
+    void init_impl(int useRefDma);
+    void set_command_queue(cl_command_queue* _command_queue) {
+        command_queue = _command_queue;
+    }
+
+
+private:
+    cl_command_queue *command_queue;
+
+};
+
+#endif