-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (41 loc) · 1.83 KB
/
Makefile
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
44
45
46
47
48
49
50
51
TEST_PATH=./tests
W=4:00
test:
PYTHONPATH=. py.test --verbose --color=yes $(TEST_PATH)
pushdata:
rsync -av ./raw [email protected]:~/bonn
rsync -av ./processed [email protected]:~/bonn
rsync -av ~/.hpolib [email protected]:~/
pushdata-leonhard:
rsync -av ./raw [email protected]:~/bonn
rsync -av ./processed [email protected]:~/bonn
rsync -av ~/.hpolib [email protected]:~/
push:
rsync -avu ./src [email protected]:~/bonn
rsync -av ./run.py [email protected]:~/bonn
rsync -av ./config.py [email protected]:~/bonn
rsync -av ./hpc.sh [email protected]:~/bonn
rsync -av ./hpc_euler.sh [email protected]:~/bonn
push-leonhard:
rsync -avu ./src [email protected]:~/bonn
rsync -av ./run.py [email protected]:~/bonn
rsync -av ./config.py [email protected]:~/bonn
rsync -av ./hpc.sh [email protected]:~/bonn
rsync -av ./hpc_leonhard.sh [email protected]:~/bonn
run:
ssh [email protected] 'cd $$HOME/bonn && bsub -W ${W} sh hpc_euler.sh ${ARGS}'
run-leonhard:
ssh [email protected] 'cd $$HOME/bonn && bsub -R "rusage[mem=8000,ngpus_excl_p=1]" -W ${W} sh hpc_leonhard.sh ${ARGS}'
pull:
# Copy all folders in outputs/
rsync -avu --include='*/' --exclude='/*' [email protected]:~/bonn/outputs/ ./outputs
rsync -av [email protected]:~/bonn/outputs/entries.csv ./outputs/entries.remote.csv
python database_merger.py
rm -f outputs/entries.remote.csv
pull-leonhard:
# Copy all folders in outputs/
rsync -avu --include='*/' --exclude='/*' [email protected]:~/bonn/outputs/ ./outputs
rsync -av [email protected]:~/bonn/outputs/entries.csv ./outputs/entries.remote.csv
python database_merger.py
rm -f outputs/entries.remote.csv
.PHONY: test