Mercurial > hg > Gears > Gears
changeset 859:c73b9d0a2755
...
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 22 Jan 2021 18:10:07 +0900 |
parents | 940d39fd76f4 |
children | 22722a4fa403 |
files | src/parallel_execution/generate_stub.pl |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/generate_stub.pl Fri Jan 22 18:06:02 2021 +0900 +++ b/src/parallel_execution/generate_stub.pl Fri Jan 22 18:10:07 2021 +0900 @@ -5,7 +5,6 @@ use Getopt::Long; use File::Path qw/make_path/; use File::Basename qw/basename dirname/; -#use DDP {deparse => 1}; #print debug use FindBin; use lib "$FindBin::Bin/lib"; @@ -855,7 +854,7 @@ for my $dataGear (@dataGears) { print $fd "${prev}GET_META($dataGear)->wait = createSynchronizedQueue(${context_name});\n"; } - if ($inputCount != 1) { + if ($inputCount > 1) { for my $i (0..$inputCount-1) { print $fd "${prev}${context_name}\->task->data[${context_name}\->task->idg+$i] = (union Data*)$dataGears[$i];\n"; } @@ -1194,9 +1193,7 @@ my $file_name = $1; my $isInterface = Gears::Interface->isThisFileInterface($file); if (defined $interface_name2headerpath->{$file_name}) { - if ($file_name !~ m|$dirname|) { - next; - } + next if ($file !~ m|$dirname|); } $interface_name2headerpath->{$file_name} = { path => $file, isInterface => $isInterface }; }