-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcmd.sh
executable file
·27 lines (24 loc) · 1.06 KB
/
cmd.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
# "queue.pl" uses qsub. The options to it are
# options to qsub. If you have GridEngine installed,
# change this to a queue you have access to.
# Otherwise, use "run.pl", which will run jobs locally
# (make sure your --num-jobs options are no more than
# the number of cpus on your machine.
# Run locally:
export train_cmd=run.pl
export decode_cmd=run.pl
# JHU cluster (or most clusters using GridEngine, with a suitable
# conf/queue.conf).
#export train_cmd="queue.pl"
#export decode_cmd="queue.pl --mem 4G"
host=$(hostname -f)
if [ ${host#*.} == "fit.vutbr.cz" ]; then
queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
export cuda_cmd="queue.pl --config $queue_conf --gpu 1 --mem 10G --tmp 40G"
elif [ ${host#*.} == "cm.cluster" ]; then
# MARCC bluecrab cluster:
export train_cmd="slurm.pl --time 4:00:00 "
export decode_cmd="slurm.pl --mem 4G --time 4:00:00 "
fi