File size: 808 Bytes
1d5604f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

#SBATCH --job-name=score
#SBATCH --mail-type=FAIL
#SBATCH --account=nn9447k
#SBATCH --time=12:00:00
#SBATCH --nodes=1
#SBATCH --mem-per-cpu=4G
#SBATCH --ntasks-per-node=8

commit="$(git log --pretty=format:\%H -n 1)";
echo "directory: $(pwd)";
echo "git status: $(git status | head -1)";
echo "git commit: ${commit}";
echo;

source /cluster/bin/jobsetup;

module purge;
module use -a /projects/nlpl/software/modulefiles;
module load nlpl-python-candy/201902/3.7 nlpl-numpy/1.16.3/3.7;

/bin/cp ${HOME}/lib/mrp/2019/mtool/data/score/Makefile ./Makefile;
make -j ${SLURM_CPUS_ON_NODE:-4} $(egrep '^[a-z/.]*.json:' Makefile | grep -v all: | sed 's/://');
if [ -d ./../../../etc/ ]; then
  target=../../../../etc/${commit};
  [ -d ${target} ] || mkdir ${target};
  cp -va *.json *.log ${target};
fi