aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Povey2017-09-26 19:21:29 -0500
committerDaniel Povey2017-09-26 19:21:29 -0500
commitb0cc15790f0bab973cf33a71ac169d8e15d453c8 (patch)
tree49e04f8eed69329ea3c4f993294d7415c2c5a1d6
parentb5d7d41e8a33437f7182753466ad7bc606a6969e (diff)
downloadkaldi-b0cc15790f0bab973cf33a71ac169d8e15d453c8.tar.gz
kaldi-b0cc15790f0bab973cf33a71ac169d8e15d453c8.tar.xz
kaldi-b0cc15790f0bab973cf33a71ac169d8e15d453c8.zip
[scripts] Change hostname -d to hostname -f for mac compatibility.
-rw-r--r--egs/ami/s5/cmd.sh2
-rw-r--r--egs/ami/s5b/cmd.sh2
-rw-r--r--egs/an4/s5/cmd.sh2
-rw-r--r--egs/cifar/v1/cmd.sh2
-rwxr-xr-x[l---------]egs/fame/s5/cmd.sh24
-rw-r--r--egs/fame/v1/cmd.sh2
-rw-r--r--egs/fame/v2/cmd.sh2
-rw-r--r--egs/lre07/v2/cmd.sh2
-rw-r--r--egs/rm/s5/cmd.sh2
-rw-r--r--egs/swbd/s5c/cmd.sh2
-rw-r--r--egs/timit/s5/cmd.sh2
-rw-r--r--egs/wsj/s5/cmd.sh2
12 files changed, 34 insertions, 12 deletions
diff --git a/egs/ami/s5/cmd.sh b/egs/ami/s5/cmd.sh
index a5d83c58e..844a1af96 100644
--- a/egs/ami/s5/cmd.sh
+++ b/egs/ami/s5/cmd.sh
@@ -29,7 +29,7 @@ export tfrnnlm_cmd="queue.pl -l hostname=b*" # this is specific to the CLSP gri
29# the use of cuda_cmd is deprecated, used only in 'nnet1', 29# the use of cuda_cmd is deprecated, used only in 'nnet1',
30export cuda_cmd="queue.pl --gpu 1 --mem 20G" 30export cuda_cmd="queue.pl --gpu 1 --mem 20G"
31 31
32if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 32if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
33 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 33 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
34 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 34 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
35 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 35 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/ami/s5b/cmd.sh b/egs/ami/s5b/cmd.sh
index cca558c71..b004c5569 100644
--- a/egs/ami/s5b/cmd.sh
+++ b/egs/ami/s5b/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd="queue.pl --mem 2G"
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1 --mem 20G" 16export cuda_cmd="queue.pl --gpu 1 --mem 20G"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/an4/s5/cmd.sh b/egs/an4/s5/cmd.sh
index 96c6c2a43..ed6991ae7 100644
--- a/egs/an4/s5/cmd.sh
+++ b/egs/an4/s5/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd=queue.pl
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1" 16export cuda_cmd="queue.pl --gpu 1"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/cifar/v1/cmd.sh b/egs/cifar/v1/cmd.sh
index a14090a74..ad3b7921d 100644
--- a/egs/cifar/v1/cmd.sh
+++ b/egs/cifar/v1/cmd.sh
@@ -18,7 +18,7 @@ export cuda_cmd="queue.pl --gpu 1"
18 18
19# the rest of this file is present for historical reasons. it's better to 19# the rest of this file is present for historical reasons. it's better to
20# create and edit conf/queue.conf for cluster-specific configuration. 20# create and edit conf/queue.conf for cluster-specific configuration.
21if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 21if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
22 # BUT cluster: 22 # BUT cluster:
23 queue="all.q@@blade,all.q@@speech" 23 queue="all.q@@blade,all.q@@speech"
24 storage="matylda5" 24 storage="matylda5"
diff --git a/egs/fame/s5/cmd.sh b/egs/fame/s5/cmd.sh
index 19f7e8366..179307556 120000..100755
--- a/egs/fame/s5/cmd.sh
+++ b/egs/fame/s5/cmd.sh
@@ -1 +1,23 @@
1../../wsj/s5/cmd.sh \ No newline at end of file 1# you can change cmd.sh depending on what type of queue you are using.
2# If you have no queueing system and want to run on a local machine, you
3# can change all instances 'queue.pl' to run.pl (but be careful and run
4# commands one by one: most recipes will exhaust the memory on your
5# machine). queue.pl works with GridEngine (qsub). slurm.pl works
6# with slurm. Different queues are configured differently, with different
7# queue names and different ways of specifying things like memory;
8# to account for these differences you can create and edit the file
9# conf/queue.conf to match your queue's configuration. Search for
10# conf/queue.conf in http://kaldi-asr.org/doc/queue.html for more information,
11# or search for the string 'default_config' in utils/queue.pl or utils/slurm.pl.
12
13export train_cmd=queue.pl
14export decode_cmd="queue.pl --mem 2G"
15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1"
17
18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
22 export cuda_cmd="queue.pl --config $queue_conf --gpu 1 --mem 10G --tmp 40G"
23fi
diff --git a/egs/fame/v1/cmd.sh b/egs/fame/v1/cmd.sh
index 23721d04c..179307556 100644
--- a/egs/fame/v1/cmd.sh
+++ b/egs/fame/v1/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd="queue.pl --mem 2G"
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1" 16export cuda_cmd="queue.pl --gpu 1"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/fame/v2/cmd.sh b/egs/fame/v2/cmd.sh
index 23721d04c..179307556 100644
--- a/egs/fame/v2/cmd.sh
+++ b/egs/fame/v2/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd="queue.pl --mem 2G"
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1" 16export cuda_cmd="queue.pl --gpu 1"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/lre07/v2/cmd.sh b/egs/lre07/v2/cmd.sh
index 81a76a12a..c5a7c9295 100644
--- a/egs/lre07/v2/cmd.sh
+++ b/egs/lre07/v2/cmd.sh
@@ -26,7 +26,7 @@ export cuda_cmd="queue.pl --gpu 1 --mem 20G"
26#export highmem_cmd="queue.pl -P inf_hcrc_cstr_nst -l h_rt=05:00:00 -pe memory-2G 4" 26#export highmem_cmd="queue.pl -P inf_hcrc_cstr_nst -l h_rt=05:00:00 -pe memory-2G 4"
27#export scoring_cmd="queue.pl -P inf_hcrc_cstr_nst -l h_rt=00:20:00" 27#export scoring_cmd="queue.pl -P inf_hcrc_cstr_nst -l h_rt=00:20:00"
28 28
29if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 29if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
30 # BUT cluster: 30 # BUT cluster:
31 queue="all.q@@blade,all.q@@speech" 31 queue="all.q@@blade,all.q@@speech"
32 storage="matylda5" 32 storage="matylda5"
diff --git a/egs/rm/s5/cmd.sh b/egs/rm/s5/cmd.sh
index 96c6c2a43..ed6991ae7 100644
--- a/egs/rm/s5/cmd.sh
+++ b/egs/rm/s5/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd=queue.pl
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1" 16export cuda_cmd="queue.pl --gpu 1"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/swbd/s5c/cmd.sh b/egs/swbd/s5c/cmd.sh
index abead5a05..fc5d4aa9e 100644
--- a/egs/swbd/s5c/cmd.sh
+++ b/egs/swbd/s5c/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd="queue.pl --mem 4G"
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1" 16export cuda_cmd="queue.pl --gpu 1"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/timit/s5/cmd.sh b/egs/timit/s5/cmd.sh
index 046eb7db2..6c6dc88ce 100644
--- a/egs/timit/s5/cmd.sh
+++ b/egs/timit/s5/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd="queue.pl --mem 4G"
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1" 16export cuda_cmd="queue.pl --gpu 1"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"
diff --git a/egs/wsj/s5/cmd.sh b/egs/wsj/s5/cmd.sh
index 23721d04c..179307556 100644
--- a/egs/wsj/s5/cmd.sh
+++ b/egs/wsj/s5/cmd.sh
@@ -15,7 +15,7 @@ export decode_cmd="queue.pl --mem 2G"
15# the use of cuda_cmd is deprecated, used only in 'nnet1', 15# the use of cuda_cmd is deprecated, used only in 'nnet1',
16export cuda_cmd="queue.pl --gpu 1" 16export cuda_cmd="queue.pl --gpu 1"
17 17
18if [ "$(hostname -d)" == "fit.vutbr.cz" ]; then 18if [[ "$(hostname -f)" == "*.fit.vutbr.cz" ]]; then
19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf, 19 queue_conf=$HOME/queue_conf/default.conf # see example /homes/kazi/iveselyk/queue_conf/default.conf,
20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2" 20 export train_cmd="queue.pl --config $queue_conf --mem 2G --matylda 0.2"
21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1" 21 export decode_cmd="queue.pl --config $queue_conf --mem 3G --matylda 0.1"