##################################################################### # Author : Claude Talandier for ESOPA # Contact : opatlod@locean-ipsl.upmc.fr # # INPUT ARGS: 6 + 1 (optional) # - NAM_V : name of the current test # - LISTE_CONF : configurations name (ORCA2_LIM, GYRE ...) # - JOBS_2LAUN : jobs to launch (nojob, all, long, short or gtime) # - BUILD_MAKE : run type (mon, mpi ... ) # - MAK_TIME : to perform a CPU time measure making a one year run # use key word 'timing' or 'notiming' # - MAK_MEMO : to perform a memory check # use key word 'memo' or 'nomemo' # - REF_TAGV : (optional) reference tag name. If specified, # current results will be compare to the results # of this tag (for a given configuration and run type) # # WORK: Allows to launch all the validation process, i.e. # I. compilations # II. simulations # III. final report # ##################################################################### SHELL = /bin/ksh ##################################################################### ##### Begin Users modifications ##################################################################### #- #- Name of the test NAM_V = nemo_v3 #- #- Configurations list which must be tested LISTE_CONF = GYRE GYRE_LOBSTER ORCA2_LIM #- #- Jobs to launch use keyword: nojob, all, long, short or gtime JOBS_2LAUN = all #- #- Compilation list type to perform, mon (mono) &/or mpi &/or omp (Open-MP) BUILD_MAKE = mon mpi #- #- Proceed to a timing, use key word 'timing' or 'notiming' MAK_TIME = notiming #- #- Proceed to a memory check, use key word 'memo' or 'nomemo' MAK_MEMO = memo #- #- Reference Tag version REF_TAGV = nemo_v2_3 #- ##################################################################### ##### End Users modifications ##################################################################### ## all: $(LISTE_CONF) @echo ' ' @echo ' ----->>>>>>>>> Compilation process ended for configuration(s) :' $(LISTE_CONF) @echo ' ' #- Make good links & launch the compilation process $(LISTE_CONF): @echo @echo "CONFIGURATION :" $@ ( MYREP_LIST=`(cd 2TEST ; ls *.[Ffh]90 *.[Ffh])` ; \ cd ../$@/MY_SRC ; rm -rf *.[Ffh]90 ; if [ -n "$$MYREP_LIST" ] ; \ then ln -sf ../../HEAD/2TEST/*.[Ffh]90 . ; fi ; ) @echo "test=" $(NAM_V) > ../$@/specifs.txt @echo "runs=" $(BUILD_MAKE) >> ../$@/specifs.txt @echo "time=" $(MAK_TIME) >> ../$@/specifs.txt @echo "memo=" $(MAK_MEMO) >> ../$@/specifs.txt @echo "tagname=" $(REF_TAGV) >> ../$@/specifs.txt @echo @echo ' ----->>>>>>>>> Links from' $@/MY_SRC ' to HEAD/2TEST done' @echo @echo ' Build the Makefile for' $@ 'configuration' ../../util/ins_make -w $@ @echo @echo gmake -C ../$@ RUN='$(BUILD_MAKE)' JOB=$(JOBS_2LAUN) RTG=$(REF_TAGV) MKTE=$(MAK_TIME) MKMO=$(MAK_MEMO) -j 2 > $@_step.txt