changeset 520:4090950d1a79

Set split size if cuda
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Sun, 07 Jan 2018 07:25:46 +0900
parents 0b408dbfc85b
children 393e1d2d06f2
files src/parallel_execution/examples/bitonicSort/bitonicSort.cbc src/parallel_execution/examples/twice/main.cbc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/examples/bitonicSort/bitonicSort.cbc	Sun Jan 07 06:30:49 2018 +0900
+++ b/src/parallel_execution/examples/bitonicSort/bitonicSort.cbc	Sun Jan 07 07:25:46 2018 +0900
@@ -93,6 +93,9 @@
             CPU_CUDA = 0;
         }
     }
+    if (gpu_num == 1) {
+        split = length/2;
+    }
 }
 
 int main(int argc, char** argv) {
--- a/src/parallel_execution/examples/twice/main.cbc	Sun Jan 07 06:30:49 2018 +0900
+++ b/src/parallel_execution/examples/twice/main.cbc	Sun Jan 07 07:25:46 2018 +0900
@@ -79,6 +79,9 @@
             CPU_CUDA = 0;
         }
     }
+    if (gpu_num == 1) {
+        split = length;
+    }
 }
 
 int main(int argc, char** argv) {