forked from cadia-lvl/samromur-asr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmd.sh
executable file
·44 lines (39 loc) · 1.52 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
# "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.
# Terra
if [[ $(hostname -f) == terra.hir.is ]]; then
# run with slurm:
export train_cmd="utils/slurm.pl"
export decode_cmd="utils/slurm.pl --mem 8G"
export mkgraph_cmd="utils/slurm.pl --mem 8G"
export big_memory_cmd="utils/slurm.pl --mem 16G"
export cuda_cmd="utils/slurm.pl --gpu 1"
else
#c) run it locally...
export train_cmd=utils/run.pl
export decode_cmd=utils/run.pl
export cuda_cmd=utils/run.pl
export mkgraph_cmd=utils/run.pl
fi
#d) via ssh
# export train_cmd=ssh.pl
# export decode_cmd=ssh.pl
# export cuda_cmd=run.pl
# export mkgraph_cmd=ssh.pl
#a) JHU cluster options
#export train_cmd="queue.pl -l arch=*64*"
#export decode_cmd="queue.pl -l arch=*64* -l ram_free=4G,mem_free=4G"
#export cuda_cmd="..."
#export mkgraph_cmd="queue.pl -l arch=*64* ram_free=4G,mem_free=4G"
#b) BUT cluster options
#export train_cmd="queue.pl -q all.q@@blade -l ram_free=1200M,mem_free=1200M"
#export decode_cmd="queue.pl -q all.q@@blade -l ram_free=1700M,mem_free=1700M"
#export decodebig_cmd="queue.pl -q all.q@@blade -l ram_free=4G,mem_free=4G"
#export cuda_cmd="queue.pl -q long.q@@pco203 -l gpu=1"
#export cuda_cmd="queue.pl -q long.q@pcspeech-gpu"
#export mkgraph_cmd="queue.pl -q all.q@@servers -l ram_free=4G,mem_free=4G"