Mercurial > hg > GearsTemplate
comparison src/parallel_execution/examples/twice/main.cbc @ 410:85b0ddbf458e
Fix CudaWorker
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 14 Sep 2017 02:35:20 +0900 |
parents | 4d1e3697a6b8 |
children | 0eba9a04633f |
comparison
equal
deleted
inserted
replaced
409:4d1e3697a6b8 | 410:85b0ddbf458e |
---|---|
96 __code createTask1(struct LoopCounter* loopCounter, struct TaskManager* taskManager) { | 96 __code createTask1(struct LoopCounter* loopCounter, struct TaskManager* taskManager) { |
97 Array* array = &ALLOCATE_DATA_GEAR(context, Array)->Array; | 97 Array* array = &ALLOCATE_DATA_GEAR(context, Array)->Array; |
98 | 98 |
99 par goto createArray(array, __exit); | 99 par goto createArray(array, __exit); |
100 | 100 |
101 par goto twice(array, iterate(split), __exit); | 101 par goto CUDAtwice(array, iterate(split), __exit); |
102 goto code2(); | 102 goto code2(); |
103 } | 103 } |
104 | 104 |
105 void init(int argc, char** argv) { | 105 void init(int argc, char** argv) { |
106 for (int i = 1; argv[i]; ++i) { | 106 for (int i = 1; argv[i]; ++i) { |