Mercurial > hg > Members > Moririn
annotate src/parallel_execution/Iterator.cbc @ 418:a74bec89c198
generate main
author | mir3636 |
---|---|
date | Fri, 06 Oct 2017 14:39:36 +0900 |
parents | 85b0ddbf458e |
children |
rev | line source |
---|---|
374
fb50cf8aa615
Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 typedef struct Iterator<Impl>{ |
fb50cf8aa615
Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 union Data* iterator; |
375
ad44fdb11433
Fix compile error but not work
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
374
diff
changeset
|
3 struct Context* task; |
410
85b0ddbf458e
Fix CudaWorker
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
378
diff
changeset
|
4 int numGPU; |
85b0ddbf458e
Fix CudaWorker
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
378
diff
changeset
|
5 __code exec(Impl* iterator, struct TaskManager* taskManager, struct Context* task, int numGPU, __code next(...)); |
375
ad44fdb11433
Fix compile error but not work
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
374
diff
changeset
|
6 __code barrier(Impl* iterator, struct Context* task, __code next(...), __code whenWait(...)); |
374
fb50cf8aa615
Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 __code whenWait(...); |
fb50cf8aa615
Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 __code next(...); |
fb50cf8aa615
Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 } Iterator; |