changeset 582:2a97d22c2a76

fix bitonicSort example
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 27 Nov 2019 18:44:00 +0900
parents 62166b0e0c7e
children ba529ff3f068
files src/parallel_execution/examples/bitonicSort/SortArray.h
diffstat 1 files changed, 6 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/examples/bitonicSort/SortArray.h	Wed Nov 27 18:27:46 2019 +0900
+++ b/src/parallel_execution/examples/bitonicSort/SortArray.h	Wed Nov 27 18:44:00 2019 +0900
@@ -1,14 +1,8 @@
 typedef struct SortArray<Impl>{
-    SortArray *sortArray;
-    Integer **array;
-    int loop_counter;
-    int loop_counter2;
-    int loop_counter3;
-    int sort_finish;
-    __code print(struct SortArray* sortArray, __code next(...));
-    __code make_array(struct SortArray* sortArray, __code next(...));
-    __code bitonic_sort(struct SortArray* sortArray, __code next(...));
-    __code kernel(struct SortArray* sortArray, __code next(...));
-    __code kernel2(struct SortArray* sortArray, __code next(...));
-    __code swap(struct SortArray* sortArray, __code next(...));
+    union Data* sortArray;
+    struct Integer *array;
+    int loopCounter;
+    int block;
+    int first;
+    int prefix;
 } SortArray;