-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParserExperimentWrapper.qsub
More file actions
executable file
·32 lines (25 loc) · 1.05 KB
/
ParserExperimentWrapper.qsub
File metadata and controls
executable file
·32 lines (25 loc) · 1.05 KB
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
#$ -cwd # run from current working directory
#$ -j y # join stderr to stdout
#$ -V # job has the same environment variables as the submission shell
#$ -l h_rt=48:00:00 # runtime limit
#$ -l mem_free=8G # expected amount of mem
#$ -l num_proc=2 # how many processors to use
#$ -o logging # where to do logging
#$ -S /bin/bash
# -M twolfe18@gmail.com
# -m as # a=aborted b=begining e=end s=suspended
set -e
if [[ $# != 2 ]]; then
echo "usage: $0 mode syntax-mode"
exit 1
fi
mode=$1
syntaxMode=$2
workingDir=experiments/${mode}-${syntaxMode}/$SGE_TASK_ID
#cp="target/fnparse-1.0.0-SNAPSHOT.jar:target/fnparse-1.0.0-SNAPSHOT-jar-with-dependencies.jar"
cp=`find target -type f -name "*.jar" | tr '\n' ':'`
jvmOpts="-ea -Xmx7G -XX:ParallelGCThreads=2"
echo "${HOSTNAME}"
java -version
java -cp ${cp} ${jvmOpts} edu.jhu.hlt.fnparse.experiment.ParserTrainer \
${mode} ${SGE_TASK_ID} ${workingDir} NA ${syntaxMode}