diff TaskManager/Gpu/GpuScheduler.h @ 1480:f2512fb94223 draft

GpuTaskManager no compile error
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Wed, 25 Jul 2012 19:41:04 +0900
parents beda5f2f88ce
children 85a848d7f181
line wrap: on
line diff
--- a/TaskManager/Gpu/GpuScheduler.h	Tue Jul 24 17:15:15 2012 +0900
+++ b/TaskManager/Gpu/GpuScheduler.h	Wed Jul 25 19:41:04 2012 +0900
@@ -3,6 +3,7 @@
 
 #include "Scheduler.h"
 #include "FifoDmaManager.h"
+#include "GpuThreads.h"
 
 #ifdef __APPLE__
 #include <OpenCL/opencl.h>
@@ -10,13 +11,16 @@
 #include <CL/cl.h>
 #endif
 
+
 class GpuScheduler : public Scheduler {
 public:
     GpuScheduler();
 
     void init_impl(int useRefDma);
+    void init_gpu();
     void run();
-
+    void regist_task(int cmd,const char* filename,const char* functionname);
+    
     void mail_write_from_host(memaddr data) {
 	fifoDmaManager->mail_write_from_host(data);
     }
@@ -29,11 +33,18 @@
 	return fifoDmaManager->has_mail_from_host();
     }
 
+    cl_platform_id platform_id;
+    cl_device_id device_id;
+    cl_uint ret_num_platforms;
+    cl_uint ret_num_devices;
+    cl_context context;
+    cl_command_queue command_queue;
+    cl_int ret;
 private:
     FifoDmaManager *fifoDmaManager;
+
 };
 
 #endif
 
-#define GpuSchedRegister(gputhreads, str, filename, functionname)    \
-    gpu_register_task(gputhreads, str, filename, functionname);
+