diff src/parallel_execution/context.h @ 305:ec0a5b4fba05

CUDAWorker
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 14 Feb 2017 12:15:58 +0900
parents 9755206813cb
children aeddca686007
line wrap: on
line diff
--- a/src/parallel_execution/context.h	Tue Feb 14 11:36:41 2017 +0900
+++ b/src/parallel_execution/context.h	Tue Feb 14 12:15:58 2017 +0900
@@ -145,13 +145,12 @@
         enum Code next;
         CUdevice device;
         CUcontext cuCtx;
-        CUfunction code;
-        CUdeviceptr* deviceptr;
-        CUstream stream;
-    } CudaWorker;
+        int num_stream;
+        CUstream *stream;
+    } CUDAWorker;
 #else
     struct CUDAWorker {
-    } CudaWorker;
+    } CUDAWorker;
 #endif
     struct Main {
         enum Code code;