Mercurial > hg > Gears > GearsAgda
diff src/parallel_execution/examples/twice/twice.cbc @ 441:5a737c3df91c
Add AtomicReference Implements of Atomic Interface
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Nov 2017 04:28:36 +0900 |
parents | 7679093bdd72 |
children |
line wrap: on
line diff
--- a/src/parallel_execution/examples/twice/twice.cbc Mon Nov 06 19:04:41 2017 +0900 +++ b/src/parallel_execution/examples/twice/twice.cbc Tue Nov 21 04:28:36 2017 +0900 @@ -34,11 +34,10 @@ buffer->outputData = NULL; buffer->inputLen = 2; buffer->outputLen = 0; - //continuationにそってGPUworkerに戻る - outputArray->array = inputArray->array; Executor* executor = context->worker->worker->CUDAWorker.executor; executor->executor->CUDAExecutor.buffer = buffer; cudaLoadFunction(context, "c/examples/twice/CUDAtwice.ptx", "twice"); + outputArray->array = inputArray->array; Gearef(context, Executor)->executor = (union Data*)executor; Gearef(context, Executor)->task = context; Gearef(context, Executor)->next = context->next;