Skip to content

Commit

Permalink
Fix run all
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Jun 7, 2018
1 parent 30c325d commit 7997e39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion project2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ status:
output:
bpeek -f

.PHONY: requirements train check test job status output
run_all:
./run_all.sh

.PHONY: requirements train check test job status output run_all
16 changes: 8 additions & 8 deletions project2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ The story cloze test 2016 accuracy is printed at the end of standard output, and
## Other make commands

```
make clean # format source code
make check # check formatting and types
make job # train on Leonhard with sct/flags.py as flags (must be logged in)
make output # watch job output on Leonhard
make status # watch job status on Leonhard
make test # run unit tests (not used extensively)
make train # train locally with sct/flags.py as flags
make runall # run all experiments in sct/experiments one after each other (currently only roemmele*)
make clean # format source code
make check # check formatting and types
make job # train on Leonhard with sct/flags.py as flags (must be logged in)
make output # watch job output on Leonhard
make status # watch job status on Leonhard
make test # run unit tests (not used extensively)
make train # train locally with sct/flags.py as flags
make run_all # run all experiments in sct/experiments one after each other (currently only roemmele*)
```
4 changes: 2 additions & 2 deletions project2/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ for file in `ls sct/experiments/`; do
expname="`basename $flags`"
echo "Running experiment $expname..."
if [[ -z $last_name ]]; then
bsub -J "$expname" -W 04:00 -n 4 -R "rusage[mem=8192,ngpus_excl_p=1]" cp "$flags" "$new_flags" && python -m sct.train $@
bsub -J "$expname" -W 04:00 -n 4 -R "rusage[mem=8192,ngpus_excl_p=1]" "cp "$flags" "$new_flags" && python -m sct.train $@"
else
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 $@
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 $@"
fi
last_name="$expname"
echo "Submitted experiment $expname."
Expand Down

0 comments on commit 7997e39

Please sign in to comment.