comparison src/parallel_execution/test/oneDimIterator_test.cbc @ 379:2744cb933ebc

Fix compile error for bitonicSort but not work
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Jul 2017 07:01:14 +0900
parents 9049c19036fd
children 408b4aab7610
comparison
equal deleted inserted replaced
378:9049c19036fd 379:2744cb933ebc
82 goto meta(context, taskManager->taskManager->TaskManager.shutdown); 82 goto meta(context, taskManager->taskManager->TaskManager.shutdown);
83 } 83 }
84 84
85 __code createTask2(struct LoopCounter* loopCounter, struct TaskManager* taskManager) { 85 __code createTask2(struct LoopCounter* loopCounter, struct TaskManager* taskManager) {
86 struct Context** tasks = (struct Context**)ALLOC_ARRAY(context, Context, 1); 86 struct Context** tasks = (struct Context**)ALLOC_ARRAY(context, Context, 1);
87
88 // par goto printIterator(iterate(10))
87 struct Context* task = NEW(struct Context); 89 struct Context* task = NEW(struct Context);
88 initContext(task); 90 initContext(task);
89 task->iterate = 0; 91 task->iterate = 0;
90 task->iterator = createOneDimIterator(context, 10); 92 task->iterator = createOneDimIterator(context, 10);
91 task->idgCount = 0; 93 task->idgCount = 0;
92 task->next = C_printIterator; 94 task->next = C_printIterator;
93 task->idg = task->dataNum; 95 task->idg = task->dataNum;
94 task->maxIdg = task->idg; 96 task->maxIdg = task->idg;
95 task->odg = task->maxIdg; 97 task->odg = task->maxIdg;
96 task->maxOdg = task->odg; 98 task->maxOdg = task->odg;
99
97 tasks[0] = task; 100 tasks[0] = task;
98 taskManager->contexts = tasks; 101 taskManager->contexts = tasks;
99 taskManager->next1 = C_createTask1; 102 taskManager->next1 = C_createTask1;
100 goto meta(context, taskManager->taskManager->TaskManager.spawnTasks); 103 goto meta(context, taskManager->taskManager->TaskManager.spawnTasks);
101 } 104 }