-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·39 lines (34 loc) · 1.11 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#PBS -l walltime=00:30:00,nodes=10:ppn=4
#PBS -N nile-test
cd $PBS_O_WORKDIR # Connect to working directory
###################################################################
# Initialize MPI
###################################################################
export PATH=/home/nlg-03/riesa/mpich2-install/bin:$PATH
export PYTHONPATH=/home/nlg-03/riesa/boost_1_48_0/stage/lib:$PYTHONPATH
export LD_LIBRARY_PATH=/home/nlg-03/riesa/boost_1_48_0/stage/lib:$LD_LIBRARY_PATH
NUMCPUS=`wc -l $PBS_NODEFILE | awk '{print $1}'`
###################################################################
K=128
DATE=`date +%m%d%y`
BASEDIR=/home/nlg-03/riesa/projects/alignment
DATA=$BASEDIR/data
TEST=$DATA/test
LANGPAIR=zh-en
WEIGHTS=my-training-run.weights-22
NAME=$WEIGHTS.test-output.a
mpiexec -n $NUMCPUS $PYTHON nile.py \
--f $TEST/test.f \
--e $TEST/test.e \
--etrees $TEST/test.e-parse \
--ftrees $TEST/test.f-parse \
--evcb $TEST/test.e.vcb \
--fvcb $GOLD/test.f.vcb \
--pef $DATA/GIZA++.m4.pef \
--pfe $DATA/GIZA++.m4.pfe \
--align \
--langpair $LANGPAIR \
--weights $WEIGHTS \
--out $NAME \
--k $K