-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.hpc
72 lines (57 loc) · 1.98 KB
/
Makefile.hpc
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
DISK=/dev/shm
MAKEFLAGS=--no-print-directory
QPROLOGMAXSIZE=15000
jobname=$(shell echo $(suite)|sed -e 's/nlcow_part/nlc/'\
-e 's/part//'\
-e 's/volkskrant/v/'\
-e 's/trouw/t/'\
-e 's/nrc/n/'\
-e 's/nlcow_/n/'\
-e 's/0000000/f/'\
-e 's/000000/e/'\
-e 's/parool/p/' | tr -d '-' | cut -c 1-10)
def:
@echo make: no target specified
q=nodes
job:
( \
echo "#!/bin/sh" ;\
echo "#SBATCH --nodes=1" ;\
echo "#SBATCH --ntasks=1" ;\
echo "#SBATCH --time=24:00:00" ;\
echo "#SBATCH --mem=15G";\
echo "module load Python/3.10.4-GCCcore-11.3.0";\
echo "module load lxml/4.9.1-GCCcore-11.3.0";\
echo "module load Boost/1.79.0-GCC-11.3.0";\
echo "module load Tk/8.6.12-GCCcore-11.3.0";\
echo "export PROLOGMAXSIZE=$(QPROLOGMAXSIZE)M";\
echo "hostname -f " ;\
echo "echo $(suite) " ;\
echo "cd `pwd`";\
echo "$(MAKE) -s $(HPCTARGET) suite=$(suite) enhance=$(enhance)";\
) | sbatch --job-name=$(suite)
SUITES=$(ALPINO_HOME)/Suites/Machine
PATTERN=none
FILES=${sort ${basename ${basename ${notdir ${wildcard $(SUITES)/$(PATTERN)*.sents.gz}}}}}
files:
@echo $(FILES)
jobs:
for suite in $(FILES);\
do echo $$suite $$jobname; $(MAKE) -s job suite=$$suite enhance=$(ENHANCE); sleep 0.02;\
done
longjobs:
for suite in $(FILES);\
do echo $$suite $$jobname; $(MAKE) -s longjob suite=$$suite enhance=$(ENHANCE); sleep 0.02;\
done
jobnames:
for suite in $(FILES);\
do echo $$suite; $(MAKE) -s jobname suite=$$suite; \
done
jobname:
echo $(jobname)
files:=$(shell find -maxdepth 1 -name '*.index' -o -name '*.errors' -o -name '*.data.dz' -o -name '*.log.gz' )
s:
echo $(files)
copy:
@rsync -avz $(files) zardoz.service.rug.nl:z/Alpino/LASSYNEW/
@rm $(files)