comparison src/parallel_execution/context.h @ 308:aeddca686007

CUDAtwice
author ikkun
date Tue, 14 Feb 2017 16:55:22 +0900
parents ec0a5b4fba05
children 8c2123bb577b
comparison
equal deleted inserted replaced
307:700f247f32a1 308:aeddca686007
77 int dataNum; 77 int dataNum;
78 int idgCount; //number of waiting dataGear 78 int idgCount; //number of waiting dataGear
79 int odg; 79 int odg;
80 int maxOdg; 80 int maxOdg;
81 int workerId; 81 int workerId;
82 #ifdef USE_CUDAWorker
83 int num_exec;
84 CUmodule module;
85 CUfunction function;
86 #endef
82 union Data **data; 87 union Data **data;
83 }; 88 };
84 89
85 union Data { 90 union Data {
86 struct Meta { 91 struct Meta {
93 enum Code next; 98 enum Code next;
94 double time; 99 double time;
95 } Time; 100 } Time;
96 struct LoopCounter { 101 struct LoopCounter {
97 int i; 102 int i;
98 struct Tree* tree;
99 } LoopCounter; 103 } LoopCounter;
100 struct TaskManager { 104 struct TaskManager {
101 union Data* taskManager; 105 union Data* taskManager;
102 enum Code createTask; // create NEW contexts for execution & argument 106 enum Code createTask; // create NEW contexts for execution & argument
103 enum Code spawn; // start NEW context on the worker 107 enum Code spawn; // start NEW context on the worker
210 struct Element { 214 struct Element {
211 union Data* data; 215 union Data* data;
212 struct Element* next; 216 struct Element* next;
213 } Element; 217 } Element;
214 struct Array { 218 struct Array {
219 int size;
215 int index; 220 int index;
216 int prefix; 221 int prefix;
217 int* array; 222 int* array;
218 } Array; 223 } Array;
219 struct Tree { 224 struct Tree {