diff src/parallel_execution/context.h @ 302:8e7926f3e271

fix CUDAWorker
author ikkun
date Mon, 13 Feb 2017 17:58:04 +0900 (2017-02-13)
parents f1b0cc555b6e
children 9755206813cb
line wrap: on
line diff
--- a/src/parallel_execution/context.h	Sun Feb 12 12:35:11 2017 +0900
+++ b/src/parallel_execution/context.h	Mon Feb 13 17:58:04 2017 +0900
@@ -135,8 +135,8 @@
         struct Context* context;
         int id;
     } CPUWorker;
-#ifdef USE_CUDA
-    struct CudaWorker {
+#ifdef USE_CUDAWorker
+    struct CUDAWorker {
         pthread_t thread;
         struct Context* context;
         int id;
@@ -150,7 +150,7 @@
         CUstream stream;
     } CudaWorker;
 #else
-    struct CudaWorker {
+    struct CUDAWorker {
     } CudaWorker;
 #endif
     struct Main {