-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 862 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 862 Bytes
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
default: test slurm_first_batch AutomaticRestarts Prestart Fortran_Restarts
.PHONY: test slurm_first_batch AutomaticRestarts Prestart Fortran_Restarts
test:
# create a sample batch script
echo '#!/bin/sh' > submit.sh
echo 'sleep 15' >> submit.sh
echo 'printenv' >> submit.sh
chmod +x submit.sh
# submit the script
sbatch submit.sh
sinfo
# check output
sleep 20
cat slurm-*.out
slurm_first_batch:
cd Slurm_first_batch && mkdir build && cd build && cmake .. && make && \
sbatch < first_slurm_batch_job
AutomaticRestarts:
cd AutomaticRestarts && make && sbatch batch_restart.sh
Prestart:
cd Prestart && make && sbatch batch_restart.sh
Fortran_Restarts:
cd Fortran_Restarts && make && sbatch batch_restart.sh
clean:
rm slurm-*.out submit.sh
cd AutomaticRestarts; make clean
cd Prestart; make clean
cd Fortran_Restarts; make clean