Mercurial > hg > Members > innparusu > Gears
comparison 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 |
comparison
equal
deleted
inserted
replaced
100:3d7ecced7e14 | 101:8987cf13d5bb |
---|---|
25 } | 25 } |
26 | 26 |
27 __code getQueue_stub(struct Context* context) { | 27 __code getQueue_stub(struct Context* context) { |
28 goto getQueue(context, &context->data[ActiveQueue]->queue, &context->data[Node]->node); | 28 goto getQueue(context, &context->data[ActiveQueue]->queue, &context->data[Node]->node); |
29 } | 29 } |
30 | |
31 #ifdef USE_CUDA | |
30 __code twiceGpu(struct Context* context) { | 32 __code twiceGpu(struct Context* context) { |
31 cuMemcpyHtoDAsync(context,context,context,context->stream); | 33 cuMemcpyHtoDAsync(context,context,context,context->stream); |
32 cuLaunchkanel(); | 34 cuLaunchkanel(); |
33 cuMemcpyDtoHAsync(); | 35 cuMemcpyDtoHAsync(); |
34 } | 36 } |
37 #endif |