# HG changeset patch # User Tatsuki IHA # Date 1515277546 -32400 # Node ID 4090950d1a79e3c13e228897f7d096743caeab93 # Parent 0b408dbfc85b0b63a4f2112f54f8ac8d9ebd8538 Set split size if cuda diff -r 0b408dbfc85b -r 4090950d1a79 src/parallel_execution/examples/bitonicSort/bitonicSort.cbc --- 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) { diff -r 0b408dbfc85b -r 4090950d1a79 src/parallel_execution/examples/twice/main.cbc --- 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) {