Mercurial > hg > GearsTemplate
diff src/parallel_execution/generate_context.pl @ 410:85b0ddbf458e
Fix CudaWorker
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 14 Sep 2017 02:35:20 +0900 |
parents | 9b35e6581b5c |
children | af0ec811b20e |
line wrap: on
line diff
--- a/src/parallel_execution/generate_context.pl Wed Sep 06 22:01:27 2017 +0900 +++ b/src/parallel_execution/generate_context.pl Thu Sep 14 02:35:20 2017 +0900 @@ -139,6 +139,8 @@ $code_init .= " context->code[C_${code}] = ${code}_stub;\n"; } + my $data_num = keys(%dataGear); + $data_num++; my $context_c = << "EOFEOF"; #include <stdlib.h> @@ -155,7 +157,7 @@ $code_init #include "dataGearInit.c" - context->dataNum = D_Worker; + context->dataNum = $data_num; context->tasks = createSingleLinkedQueue(context); } EOFEOF