Mercurial > hg > GearsTemplate
annotate src/parallel_execution/TaskManager.cbc @ 382:f1d111e293c4
Enable Timer for bitonicSort
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 Jul 2017 20:05:08 +0900 |
parents | fb50cf8aa615 |
children | 36964b9ac5fd |
rev | line source |
---|---|
280 | 1 typedef struct TaskManager<Impl>{ |
269 | 2 union Data* taskManager; |
3 __code spawn(Impl* taskManager, struct Queue* queue, struct Context* task, __code next(...)); | |
374
fb50cf8aa615
Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
353
diff
changeset
|
4 __code spawnTasks(struct TaskManager* taskManager, Impl* taskManagerImpl, struct Context** contexts); |
269 | 5 __code shutdown(struct LoopCounter* loopCounter, struct TaskManager* taskManager, Impl* taskManagerImpl, struct Queue* queue, __code next(...)); |
6 __code next(...); | |
374
fb50cf8aa615
Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents:
353
diff
changeset
|
7 __code next1(...); |
269 | 8 __code task(...); |
9 struct Context* context; | |
10 int worker; | |
11 int cpu; | |
12 int gpu; | |
13 int io; | |
14 int maxCPU; | |
15 } TaskManager; |