From ac8544c5c53e0211a2c9778e4ba26f513cef9525 Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 27 Jul 2010 23:47:53 +0000 Subject: vest cpbin include sentclient git-svn-id: https://ws10smt.googlecode.com/svn/trunk@439 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/dist-vest.pl | 3 ++- vest/parallelize.pl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index fd4dbc0e..5f99d4f0 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -23,6 +23,7 @@ my $MAPPER = "$bin_dir/mr_vest_map"; my $REDUCER = "$bin_dir/mr_vest_reduce"; my $parallelize = "$bin_dir/parallelize.pl"; my $sentserver = "$bin_dir/sentserver"; +my $sentclient = "$bin_dir/sentclient"; my $SCORER = $FAST_SCORE; die "Can't find $MAPPER" unless -x $MAPPER; my $cdec = "$bin_dir/../decoder/cdec"; @@ -193,7 +194,7 @@ if ($dryrun){ } else { -e $dir || mkdir $dir; mkdir "$dir/hgs"; - modbin("$dir/bin",\$cdec,\$SCORER,\$MAPINPUT,\$MAPPER,\$REDUCER,\$parallelize,\$sentserver) if $cpbin; + modbin("$dir/bin",\$cdec,\$SCORER,\$MAPINPUT,\$MAPPER,\$REDUCER,\$parallelize,\$sentserver,\$sentclient) if $cpbin; mkdir "$dir/scripts"; my $cmdfile="$dir/rerun-vest.sh"; open CMD,'>',$cmdfile; diff --git a/vest/parallelize.pl b/vest/parallelize.pl index be12eefb..a5a40704 100755 --- a/vest/parallelize.pl +++ b/vest/parallelize.pl @@ -238,7 +238,7 @@ my $script = ""; # fork == one thread runs the sentserver, while the # other spawns the sentclient commands. if (my $pid = fork) { - sleep 4; # give other thread time to start sentserver + sleep 8; # give other thread time to start sentserver $script = qq{wait $cdcmd$sentclient $host:$port:$key $cmd -- cgit v1.2.3