Mercurial > hg > Members > innparusu > Gears
comparison src/parallel_execution/worker.c @ 98:d400948dbbab
add Cuda infomation to context
author | ikkun |
---|---|
date | Mon, 01 Feb 2016 18:03:43 +0900 |
parents | 3e28ee215c0e |
children | 8987cf13d5bb |
comparison
equal
deleted
inserted
replaced
97:485ea0290fae | 98:d400948dbbab |
---|---|
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 __code twiceGpu(struct Context* context) { | |
31 cuMemcpyHtoDAsync(context,context,context,context->stream); | |
32 cuLaunchkanel(); | |
33 cuMemcpyDtoHAsync(); | |
34 } |