1 | # Makefile de GRISLI - compilo et options pour Cat (pc-226) |
---|
2 | # FT options de compilation |
---|
3 | # LK options de link |
---|
4 | |
---|
5 | # Rappel de quelques options interessantes |
---|
6 | #------------------------------------------- |
---|
7 | # faire imperativement attention a l'arithmetique |
---|
8 | # -fpe0 s'arrete sur les floating point exception (sauf underflow) |
---|
9 | # -CB Performs run-time checking on array subscript and character substring expressions |
---|
10 | # -g pour debug |
---|
11 | # -pg pour le profiling |
---|
12 | # -traceback permet de connaitre la ligne qui plante |
---|
13 | |
---|
14 | # faire man ifort pour plus d'infos |
---|
15 | |
---|
16 | # le directory dans lequel sont les compilateurs et MKL |
---|
17 | # DIRLOCAL=/usr/local variable d'environnement a definir dans .bash_profile |
---|
18 | |
---|
19 | |
---|
20 | # lit le nom du fichier param pour lancer sur r2d2 par une commande : echo jobparam | LBQ.... |
---|
21 | |
---|
22 | JOB = 'job' |
---|
23 | |
---|
24 | |
---|
25 | # librairies |
---|
26 | |
---|
27 | NETCDFHOME= $(DIRLOCAL)/netcdf-4.0.1 |
---|
28 | HDF5_HOME=$(DIRLOCAL)/hdf5-1.8.1 |
---|
29 | NCDF_INC = $(NETCDFHOME)/include |
---|
30 | NCDF_LIB = -L$(NETCDFHOME)/lib -lnetcdf |
---|
31 | |
---|
32 | # librairies |
---|
33 | |
---|
34 | NCDF_INC = $(NETCDFHOME)/include |
---|
35 | NCDF_LIB = -L$(NETCDFHOME)/lib -lnetcdf -L$(HDF5_HOME)/lib -lhdf5 -lhdf5_hl |
---|
36 | HDF5_INC = $(HDF5_HOME)/include |
---|
37 | HDF5_LIB=-L$(HDF5_HOME)/lib -lhdf5 -lz |
---|
38 | |
---|
39 | MKL_LIB = -L$(DIRLOCAL)/intel/mkl10/lib/64 -lmkl -lguide -lpthread # -lmklapack |
---|
40 | export $MKL_LIB |
---|
41 | |
---|
42 | #IFORT = $(DIRLOCAL)/intel/compiler9/bin/ifort |
---|
43 | IFORT = $(DIRLOCAL)/intel/compiler10/bin/ifort |
---|
44 | |
---|
45 | ARITHM = -O2 -fp-model precise -heap-arrays # -traceback -CB -g # options pour une meilleure arithmetique |
---|
46 | # (normalement reproductible) |
---|
47 | #ARITHM = -fp-model precise -warn all -CU -CA # options pour une meilleure arithmetique (normalement reproductible) |
---|
48 | # ARITHM = -03 # trop brutal ne pas utiliser |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | FT = $(IFORT) $(ARITHM) -c -fpe0 #-traceback -CB #-g #-pg # -g # -pg -ipo !aurel : j'ai enleve -CB |
---|
53 | LK = $(IFORT) $(ARITHM) -i_dynamic -fpe0 # -traceback -CB # -g #-pg #-g # -pg |
---|
54 | F_NETCDF = $(IFORT) $(ARITHM) -c -fpe0 -I$(NCDF_INC) # -traceback -CB #-g #-pg -ipo # -g |
---|
55 | FT = $(IFORT) $(ARITHM) -c -fpe0 -I$(NCDF_INC) # -traceback -CB #-g #-pg -ipo # -g |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|