72
|
1 struct Context {
|
|
2 enum Code next;
|
|
3 struct Worker* worker;
|
|
4 struct TaskManager* taskManager;
|
|
5 int codeNum;
|
|
6 __code (**code) (struct Context*);
|
|
7 union Data **data;
|
|
8 struct Meta **metaDataStart;
|
|
9 struct Meta **metaData;
|
|
10 void* heapStart;
|
|
11 void* heap;
|
|
12 long heapLimit;
|
|
13 int dataNum;
|
|
14
|
|
15 // task parameter
|
|
16 int idgCount; //number of waiting dataGear
|
|
17 int idg;
|
|
18 int maxIdg;
|
|
19 int odg;
|
|
20 int maxOdg;
|
|
21 int gpu; // GPU task
|
|
22 struct Context* task;
|
|
23 struct Element* taskList;
|
|
24 #ifdef USE_CUDAWorker
|
|
25 int num_exec;
|
|
26 CUmodule module;
|
|
27 CUfunction function;
|
|
28 #endif
|
|
29 /* multi dimension parameter */
|
|
30 int iterate;
|
|
31 struct Iterator* iterator;
|
|
32 };
|