Mercurial > hg > GearsTemplate
diff src/parallel_execution/generate_context.pl @ 312:7dd5a7d52a67
USE_CUDAWorker flag only for CUDAtwice
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 15 Feb 2017 11:04:30 +0900 |
parents | bc17237bc8cf |
children | 0d720487291f |
line wrap: on
line diff
--- a/src/parallel_execution/generate_context.pl Tue Feb 14 22:20:17 2017 +0900 +++ b/src/parallel_execution/generate_context.pl Wed Feb 15 11:04:30 2017 +0900 @@ -85,9 +85,9 @@ my ($filename) = @_; open my $fd,"<",$filename or die("can't open $filename $!"); while (<$fd>) { - if (/^__code (\w+)_stub\(struct Context\* context\)/ or /^\s__code (\w+)_stub\(struct Context\* context\)/) { + if (/^__code (\w+)_stub\(struct *Context *\* *context\)/) { $codeGear{$1} = $filename; - } elsif (/^(\w+)(\*)+ create(\w+)\(([^]]*)\)/) { + } elsif (/^(\w+)(\*)+ *create(\w+)\(([^]]*)\)/) { my $interface = $1; my $implementation = $3; my $constructorArgs = $4;