diff src/parallel_execution/worker.c @ 101:8987cf13d5bb

Add Allocate macro
author innparusu
date Wed, 02 Mar 2016 19:23:00 +0900
parents d400948dbbab
children 6402a33250a6
line wrap: on
line diff
--- a/src/parallel_execution/worker.c	Tue Feb 02 16:12:34 2016 +0900
+++ b/src/parallel_execution/worker.c	Wed Mar 02 19:23:00 2016 +0900
@@ -27,8 +27,11 @@
 __code getQueue_stub(struct Context* context) {
     goto getQueue(context, &context->data[ActiveQueue]->queue, &context->data[Node]->node);
 }
+
+#ifdef USE_CUDA
 __code twiceGpu(struct Context* context) {
     cuMemcpyHtoDAsync(context,context,context,context->stream);
     cuLaunchkanel();
     cuMemcpyDtoHAsync();
 }
+#endif