1 | # $Id$ |
---|
2 | ##################################################################### |
---|
3 | # Author : Claude Talandier for ESOPA |
---|
4 | # Contact : opatlod@locean-ipsl.upmc.fr |
---|
5 | # |
---|
6 | # INPUT ARGS: 6 + 1 (optional) |
---|
7 | # - NAM_V : name of the current test |
---|
8 | # - LISTE_CONF : configurations name (ORCA2_LIM, GYRE ...) |
---|
9 | # - JOBS_2LAUN : jobs to launch (nojob, all, long, short or gtime) |
---|
10 | # - BUILD_MAKE : run type (mon, mpi ... ) |
---|
11 | # - MAK_TIME : to perform a CPU time measure making a one year run |
---|
12 | # use key word 'timing' or 'notiming' |
---|
13 | # - MAK_MEMO : to perform a memory check |
---|
14 | # use key word 'memo' or 'nomemo' |
---|
15 | # - REF_TAGV : (optional) reference tag name. If specified, |
---|
16 | # current results will be compare to the results |
---|
17 | # of this tag (for a given configuration and run type) |
---|
18 | # |
---|
19 | # WORK: Allows to launch all the validation process, i.e. |
---|
20 | # I. compilations |
---|
21 | # II. simulations |
---|
22 | # III. final report |
---|
23 | # |
---|
24 | ##################################################################### |
---|
25 | SHELL = /bin/ksh |
---|
26 | ##################################################################### |
---|
27 | ##### Begin Users modifications |
---|
28 | ##################################################################### |
---|
29 | #- |
---|
30 | #- Name of the test |
---|
31 | NAM_V = nemo_v3 |
---|
32 | #- |
---|
33 | #- Configurations list which must be tested |
---|
34 | LISTE_CONF = GYRE GYRE_LOBSTER ORCA2_LIM |
---|
35 | #- |
---|
36 | #- Jobs to launch use keyword: nojob, all, long, short or gtime |
---|
37 | JOBS_2LAUN = all |
---|
38 | #- |
---|
39 | #- Compilation list type to perform, mon (mono) &/or mpi &/or omp (Open-MP) |
---|
40 | BUILD_MAKE = mon mpi |
---|
41 | #- |
---|
42 | #- Proceed to a timing, use key word 'timing' or 'notiming' |
---|
43 | MAK_TIME = notiming |
---|
44 | #- |
---|
45 | #- Proceed to a memory check, use key word 'memo' or 'nomemo' |
---|
46 | MAK_MEMO = memo |
---|
47 | #- |
---|
48 | #- Reference Tag version |
---|
49 | REF_TAGV = nemo_v2_3 |
---|
50 | #- |
---|
51 | ##################################################################### |
---|
52 | ##### End Users modifications |
---|
53 | ##################################################################### |
---|
54 | |
---|
55 | ## |
---|
56 | all: $(LISTE_CONF) |
---|
57 | @echo ' ' |
---|
58 | @echo ' ----->>>>>>>>> Compilation process ended for configuration(s) :' $(LISTE_CONF) |
---|
59 | @echo ' ' |
---|
60 | |
---|
61 | #- Make good links & launch the compilation process |
---|
62 | $(LISTE_CONF): |
---|
63 | @echo |
---|
64 | @echo "CONFIGURATION :" $@ |
---|
65 | ( MYREP_LIST=`(cd 2TEST ; ls *.[Ffh]90 *.[Ffh])` ; \ |
---|
66 | cd ../$@/MY_SRC ; rm -rf *.[Ffh]90 ; if [ -n "$$MYREP_LIST" ] ; \ |
---|
67 | then ln -sf ../../NVTK/2TEST/*.[Ffh]90 . ; fi ; ) |
---|
68 | @echo "test=" $(NAM_V) > ../$@/specifs.txt |
---|
69 | @echo "runs=" $(BUILD_MAKE) >> ../$@/specifs.txt |
---|
70 | @echo "time=" $(MAK_TIME) >> ../$@/specifs.txt |
---|
71 | @echo "memo=" $(MAK_MEMO) >> ../$@/specifs.txt |
---|
72 | @echo "tagname=" $(REF_TAGV) >> ../$@/specifs.txt |
---|
73 | @echo |
---|
74 | @echo ' ----->>>>>>>>> Links from' $@/MY_SRC ' to NVTK/2TEST done' |
---|
75 | @echo |
---|
76 | @echo ' Build the Makefile for' $@ 'configuration' |
---|
77 | ../../util/ins_make -w $@ |
---|
78 | @echo |
---|
79 | @echo |
---|
80 | gmake -C ../$@ RUN='$(BUILD_MAKE)' JOB=$(JOBS_2LAUN) RTG=$(REF_TAGV) MKTE=$(MAK_TIME) MKMO=$(MAK_MEMO) -j 2 > $@_step.txt |
---|