source: trunk/SOURCES/Modifs_GrIce2sea_Aurel/Makefile.lgge-pc96.inc @ 65

Last change on this file since 65 was 4, checked in by dumas, 10 years ago

initial import GRISLI trunk

File size: 1.7 KB
Line 
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
21# librairies
22
23NCDF_INC  = $(NETCDFHOME)/include
24NCDF_LIB  = -L$(NETCDFHOME)/lib -lnetcdf
25
26
27#MKL_LIB   = -L$(DIRLOCAL)/intel/mkl9/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread
28MKL_LIB  = -L$(DIRLOCAL)/intel/mkl10/lib/32  -lmkl -lguide -lpthread #  -lmklapack
29export $MKL_LIB
30
31#IFORT = $(DIRLOCAL)/intel/compiler9/bin/ifort
32IFORT = $(DIRLOCAL)/intel/compiler10/bin/ifort
33
34ARITHM    = -O2 -fp-model precise  -heap-arrays # options pour une meilleure arithmetique (normalement reproductible)
35#ARITHM    =  -fp-model precise -warn all -CU -CA # options pour une meilleure arithmetique (normalement reproductible)
36# ARITHM = -03                    # trop brutal ne pas utiliser
37
38
39
40FT        = $(IFORT) $(ARITHM) -c  -fpe0   -traceback   -CB  -g #-pg  # -g # -pg -ipo !aurel : j'ai enleve -CB
41LK        = $(IFORT) $(ARITHM)  -i_dynamic  -fpe0   -traceback   -CB -g  #-pg   #-g #  -pg
42F_NETCDF  = $(IFORT) $(ARITHM) -c  -fpe0  -I$(NCDF_INC)  -traceback  -CB -g #-pg -ipo # -g
43FT        = $(IFORT) $(ARITHM) -c  -fpe0  -I$(NCDF_INC)  -traceback  -CB -g #-pg -ipo # -g
44
Note: See TracBrowser for help on using the repository browser.