comparison src/parallel_execution/context.h @ 374:fb50cf8aa615

Add Iterator Interface
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 18 Jul 2017 15:14:08 +0900
parents d6ce4273e7d1
children ad44fdb11433
comparison
equal deleted inserted replaced
373:03fdea4ef680 374:fb50cf8aa615
94 CUfunction function; 94 CUfunction function;
95 #endif 95 #endif
96 union Data **data; 96 union Data **data;
97 97
98 /* multi dimension parameter */ 98 /* multi dimension parameter */
99 struct Context* contexts; 99 int iterate;
100 int dim; 100 struct Iterator* iterator;
101 int x;
102 int y;
103 int z;
104 }; 101 };
105 102
106 union Data { 103 union Data {
107 struct Meta { 104 struct Meta {
108 enum DataType type; 105 enum DataType type;
306 enum Code print; 303 enum Code print;
307 enum Code bitonic_sort; 304 enum Code bitonic_sort;
308 enum Code kernel; 305 enum Code kernel;
309 enum Code kernel2; 306 enum Code kernel2;
310 enum Code swap; 307 enum Code swap;
311 }SortArray; 308 } SortArray;
309 struct Iterator {
310 struct Iterator *iterator;
311 enum Code exec;
312 enum Code barrier;
313 enum Code whenWait;
314 enum Code next;
315 } Iterator;
316 struct OneDimIterator {
317 int x;
318 int count;
319 } OneDimIterator;
312 }; // union Data end this is necessary for context generator 320 }; // union Data end this is necessary for context generator
313 321
314 typedef union Data Data; 322 typedef union Data Data;
315 323
316 #include "c/typedefData.h" 324 #include "c/typedefData.h"