Skip to content

Commit 7997e39

Browse files
committed
Fix run all
1 parent 30c325d commit 7997e39

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

project2/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ status:
2828
output:
2929
bpeek -f
3030

31-
.PHONY: requirements train check test job status output
31+
run_all:
32+
./run_all.sh
33+
34+
.PHONY: requirements train check test job status output run_all

project2/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ The story cloze test 2016 accuracy is printed at the end of standard output, and
5454
## Other make commands
5555
5656
```
57-
make clean # format source code
58-
make check # check formatting and types
59-
make job # train on Leonhard with sct/flags.py as flags (must be logged in)
60-
make output # watch job output on Leonhard
61-
make status # watch job status on Leonhard
62-
make test # run unit tests (not used extensively)
63-
make train # train locally with sct/flags.py as flags
64-
make runall # run all experiments in sct/experiments one after each other (currently only roemmele*)
57+
make clean # format source code
58+
make check # check formatting and types
59+
make job # train on Leonhard with sct/flags.py as flags (must be logged in)
60+
make output # watch job output on Leonhard
61+
make status # watch job status on Leonhard
62+
make test # run unit tests (not used extensively)
63+
make train # train locally with sct/flags.py as flags
64+
make run_all # run all experiments in sct/experiments one after each other (currently only roemmele*)
6565
```

project2/run_all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ for file in `ls sct/experiments/`; do
1313
expname="`basename $flags`"
1414
echo "Running experiment $expname..."
1515
if [[ -z $last_name ]]; then
16-
bsub -J "$expname" -W 04:00 -n 4 -R "rusage[mem=8192,ngpus_excl_p=1]" cp "$flags" "$new_flags" && python -m sct.train $@
16+
bsub -J "$expname" -W 04:00 -n 4 -R "rusage[mem=8192,ngpus_excl_p=1]" "cp "$flags" "$new_flags" && python -m sct.train $@"
1717
else
18-
bsub -J "$expname" -w ended("$last_name") -W 04:00 -n 4 -R "rusage[mem=8192,ngpus_excl_p=1]" cp "$flags" "$new_flags" && python -m sct.train $@
18+
bsub -J "$expname" -w 'ended('"$last_name"')' -W 04:00 -n 4 -R "rusage[mem=8192,ngpus_excl_p=1]" "cp "$flags" "$new_flags" && python -m sct.train $@"
1919
fi
2020
last_name="$expname"
2121
echo "Submitted experiment $expname."

0 commit comments

Comments
 (0)