- Timestamp:
- 05/18/16 10:42:30 (8 years ago)
- Location:
- trunk/SOURCES
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SOURCES/Fichiers-parametres/Makefile.tof-lsce3130.inc
r62 r64 19 19 20 20 # lit le nom du fichier param pour lancer sur r2d2 par une commande : echo jobparam | LBQ.... 21 22 21 JOB = 'job' 23 22 23 # mettre debug à 1 pour compiler avec options strictes 24 debug ?= 0 25 26 # compilation avec ifort : 27 ifeq ($(ifort),1) 24 28 25 29 # librairies 30 NCDF_INC = $(NETCDFHOME)/include 31 NCDF_LIB = -L$(NETCDFHOME)/lib -lnetcdf -lnetcdff 26 32 27 NCDF_INC = $(NETCDFHOME)/include 28 NCDF_LIB = -L$(NETCDFHOME)/lib -lnetcdf -lnetcdff 33 # utilisation de MKL : 34 ifeq ($(mkl_c), 1) 35 MKL_LIB = -L$MKLROOT/lib/em64t -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread 36 export $MKL_LIB 37 endif 29 38 39 IFORT= ifort 30 40 31 #MKL_LIB = -L$(DIRLOCAL)/intel/mkl9/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread 32 #MKL_LIB = -L$(DIRLOCAL)/intel/mkl10/lib/32 -lmkl -lguide -lpthread # -lmklapack 33 34 ifeq ($(mkl_c), 1) 35 MKL_LIB = -L$MKLROOT/lib/em64t -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread 36 export $MKL_LIB 37 endif 38 39 IFORT= ifort 40 41 ARITHM = -O2 -fp-model precise -heap-arrays -traceback -mcmodel=medium -diag-disable warn # -warn -traceback -CB -g # options pour une meilleure arithmetique 41 ARITHMi = -O2 -fp-model precise -heap-arrays -traceback -mcmodel=medium -diag-disable warn # -warn -traceback -CB -g # options pour une meilleure arithmetique 42 42 # (normalement reproductible) 43 ifeq ($(debug), 1) 44 ARITHM = $(ARITHMi) -CB -g -traceback -warn all 45 else 46 ARITHM = $(ARITHMi) 47 endif 48 43 49 #ARITHM = -fp-model precise -warn all -CU -CA # options pour une meilleure arithmetique (normalement reproductible) 44 50 # ARITHM = -03 # trop brutal ne pas utiliser 45 51 52 FT = $(IFORT) $(ARITHM) #-traceback -CB #-g #-pg # -g # -pg -ipo !aurel : j'ai enleve -CB 53 LK = $(IFORT) $(ARITHM) -i_dynamic # -traceback -CB # -g #-pg #-g # -pg 54 NETCDFINCLUDE = -I$(NCDF_INC) 55 F_NETCDF = $(IFORT) $(ARITHM) -c -I$(NCDF_INC) # -traceback -CB #-g #-pg -ipo # -g 56 #FT = $(IFORT) $(ARITHM) -c -I$(NCDF_INC) # -traceback -CB #-g #-pg -ipo # -g 57 58 # compilation avec gfortran et librairie BLAS 59 else 46 60 61 # librairies 62 LIBSYS = /usr/lib 63 # INCSYS = /usr/include # Ubuntu 64 INCSYS = /usr/lib64/gfortran/modules # Fedora 65 NCDF_INC = $(INCSYS) 66 NCDF_LIB = -L$(LIBSYS) -lnetcdff -lnetcdf 47 67 48 FT = $(IFORT) $(ARITHM) #-traceback -CB #-g #-pg # -g # -pg -ipo !aurel : j'ai enleve -CB 49 LK = $(IFORT) $(ARITHM) -i_dynamic # -traceback -CB # -g #-pg #-g # -pg 50 NETCDFINCLUDE = -I$(NCDF_INC) 51 F_NETCDF = $(IFORT) $(ARITHM) -c -I$(NCDF_INC) # -traceback -CB #-g #-pg -ipo # -g 52 #FT = $(IFORT) $(ARITHM) -c -I$(NCDF_INC) # -traceback -CB #-g #-pg -ipo # -g 53 F_90 = -w90 68 IFORT= gfortran 69 70 ARITHMi = -O2 -ffree-line-length-none -mtune=native -mfpmath=sse 71 72 ifeq ($(debug), 1) 73 ARITHM = $(ARITHMi) -g -pg -Wall -fno-align-commons -p -ggdb -ffpe-trap=invalid,zero,overflow,underflow -fbacktrace -fcheck=all 74 else 75 ARITHM = $(ARITHMi) 76 endif 77 78 # debug : -g -CB -fp-stack-check -check all 79 FT = $(IFORT) $(ARITHM) -c 80 LK = $(IFORT) $(ARITHM) 81 NETCDFINCLUDE = -I$(NCDF_INC) 82 F_NETCDF = $(IFORT) $(ARITHM) -c -I$(NCDF_INC) 83 endif 54 84 55 85 56 86 57 -
trunk/SOURCES/Makefile
r34 r64 14 14 # Choice for librairies (mkl_c = 1 = MKL, = 0 = BLAS) 15 15 #Â NOTA: mkl_c = 1 with ifort = 0 ignores the MKL and uses BLAS anyhow 16 mkl_c ?= 116 mkl_c ?= 0 17 17 18 ifeq ($(ifort),1)18 #ifeq ($(ifort),1) 19 19 include Fichiers-parametres/Makefile.tof-lsce3130.inc 20 else21 include Fichiers-parametres/Makefile.dmr-lsce3027.inc22 endif20 #else 21 # include Fichiers-parametres/Makefile.dmr-lsce3027.inc 22 #endif 23 23 24 24 # Compilation (le corps du Makefile) 25 25 #------------------------------------------- 26 26 27 ifeq ($(ifort),1)27 #ifeq ($(ifort),1) 28 28 include Makefile.grisli.inc 29 else30 include Makefile.grisli-gfortran.inc31 endif29 #else 30 # include Makefile.grisli-gfortran.inc 31 #endif -
trunk/SOURCES/Makefile.grisli.inc
r62 r64 303 303 304 304 ifeq ($(mkl_c), 0) 305 Liste_BLAS = LAPACK/band.o LAPACK/reduc.o \306 BLAS/isamax.o BLAS/lsame.o BLAS/scopy.o \307 BLAS/slamch.o BLAS/slabad.o BLAS/slange.o \308 BLAS/slassq.o BLAS/sgeqrf.o BLAS/sormqr.o \309 BLAS/strmv.o BLAS/slarft.o \310 BLAS/ilaslr.o BLAS/ilaslc.o BLAS/strmm.o \311 BLAS/slarfb.o BLAS/slapy2.o BLAS/slarfg.o BLAS/slarf.o \312 BLAS/sgeqr2.o BLAS/sorm2r.o BLAS/snrm2.o \313 BLAS/slaqps.o BLAS/slaqp2.o BLAS/sgeqp3.o \314 BLAS/slaset.o BLAS/slaisnan.o BLAS/sisnan.o \315 BLAS/slascl.o BLAS/sdot.o BLAS/slaic1.o \316 BLAS/slarzb.o BLAS/slarzt.o \317 BLAS/saxpy.o BLAS/slarz.o BLAS/sormr3.o \318 BLAS/sormrz.o BLAS/slatrz.o BLAS/stzrzf.o BLAS/sgelsy.o \319 BLAS/sgbmv.o BLAS/sgemm.o BLAS/sgemv.o BLAS/sger.o \320 BLAS/sscal.o BLAS/sswap.o BLAS/stbsv.o \321 BLAS/strsm.o BLAS/xerbla.o305 Liste_BLAS = band.o reduc.o \ 306 isamax.o lsame.o scopy.o \ 307 slamch.o slabad.o slange.o \ 308 slassq.o sgeqrf.o sormqr.o \ 309 strmv.o slarft.o \ 310 ilaslr.o ilaslc.o strmm.o \ 311 slarfb.o slapy2.o slarfg.o slarf.o \ 312 sgeqr2.o sorm2r.o snrm2.o \ 313 slaqps.o slaqp2.o sgeqp3.o \ 314 slaset.o slaisnan.o sisnan.o \ 315 slascl.o sdot.o slaic1.o \ 316 slarzb.o slarzt.o \ 317 saxpy.o slarz.o sormr3.o \ 318 sormrz.o slatrz.o stzrzf.o sgelsy.o \ 319 sgbmv.o sgemm.o sgemv.o sger.o \ 320 sscal.o sswap.o stbsv.o \ 321 strsm.o xerbla.o 322 322 323 323 endif … … 400 400 # BLAS : 401 401 %.o : BLAS/%.f 402 $(FT) $(NETCDFINCLUDE) -c BLAS/$*.f 403 404 # Reduc et band: 405 band.o : LAPACK/band.f 406 $(FT) $(NETCDFINCLUDE) -c $*.f 407 reduc.o : LAPACK/reduc.f 408 $(FT) $(NETCDFINCLUDE) -c $*.f 402 $(FT) -c BLAS/$*.f 403 404 # Reduc et band: 405 %.o : LAPACK/%.f 406 $(FT) -c LAPACK/$*.f 409 407 410 408 … … 431 429 $(Liste_ANT15-LBq) \ 432 430 $(diagnoshelf) $(Liste_Netcdf) \ 433 $(routines_communes) steps_time_loop.o $(routine_elliptiques) $(NCDF_LIB) 431 $(routines_communes) steps_time_loop.o $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) 434 432 435 433 Recul_ice2sea : $(Dim_ANT15-LBq) $(mod_dim_communs) \ … … 451 449 $(Liste_ANT15-LBq) \ 452 450 $(diagnoshelf) $(Liste_Netcdf) \ 453 $(routines_communes) steps_time_loop.o $(routine_elliptiques) $(NCDF_LIB) 451 $(routines_communes) steps_time_loop.o $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) 454 452 455 453 … … 464 462 $(mod_ell) $(Liste_mismip_3D_5) \ 465 463 $(Liste_Netcdf) $(Liste_mismip_post_ncdf) $(diagnoshelf) \ 466 $(routines_communes) steps_time_loop.o $(routine_elliptiques) $(NCDF_LIB) 464 $(routines_communes) steps_time_loop.o $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) 467 465 468 466 Grice2sea : $(Dim_GrIce2sea) $(mod_dim_communs) \ … … 474 472 $(diagnoshelf) \ 475 473 $(Liste_Netcdf) \ 476 $(routines_communes) steps_time_loop.o $(routine_elliptiques) 474 $(routines_communes) steps_time_loop.o \ 475 $(routine_elliptiques) \ 476 $(Liste_BLAS) 477 477 478 478 $(LK) -o ../bin/Grice2sea \ … … 486 486 $(Liste_Netcdf) \ 487 487 $(routines_communes) steps_time_loop.o \ 488 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB)488 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) $(Liste_BLAS) 489 489 490 490 Grice2sea_iterbeta : $(Dim_GrIce2sea) $(mod_dim_communs) \ … … 497 497 $(Liste_Netcdf) \ 498 498 $(routines_communes) steps_time_loop_avec_iterbeta.o \ 499 $(routine_elliptiques) 499 $(routine_elliptiques) \ 500 $(Liste_BLAS) 500 501 501 502 $(LK) -o ../bin/Grice2sea_iterbeta \ … … 509 510 $(Liste_Netcdf) \ 510 511 $(routines_communes) steps_time_loop_avec_iterbeta.o \ 511 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB)512 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) $(Liste_BLAS) 512 513 513 514 Hemin-40 : $(Dim_hemin40) $(mod_dim_communs) \ … … 533 534 $(Liste_Netcdf) \ 534 535 $(routines_communes) steps_time_loop.o \ 535 $(routine_elliptiques) $(NCDF_LIB) 536 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) $(Liste_BLAS) 536 537 537 538 Hemin-15 : $(Dim_hemin15) $(mod_dim_communs) \ … … 544 545 $(Liste_Netcdf) \ 545 546 $(routines_communes) steps_time_loop.o \ 546 $(routine_elliptiques) 547 $(routine_elliptiques) \ 548 $(Liste_BLAS) 547 549 548 550 $(LK) -o ../bin/Hemin-15 \ … … 556 558 $(Liste_Netcdf) \ 557 559 $(routines_communes) steps_time_loop.o \ 558 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB)560 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) $(Liste_BLAS) 559 561 560 562 Greeneem15 : $(Dim_greeneem15) $(mod_dim_communs) \ … … 567 569 $(Liste_Netcdf) \ 568 570 $(routines_communes) steps_time_loop.o \ 569 $(routine_elliptiques) 571 $(routine_elliptiques) \ 572 $(Liste_BLAS) 570 573 571 574 $(LK) -o ../bin/Greeneem15 \ … … 579 582 $(Liste_Netcdf) \ 580 583 $(routines_communes) steps_time_loop.o \ 581 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB)584 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) $(Liste_BLAS) 582 585 583 586 Ant-40 : $(Dim_Ant40) $(mod_dim_communs) \ … … 603 606 $(Liste_Netcdf) \ 604 607 $(routines_communes) steps_time_loop.o \ 605 $(routine_elliptiques) $(NCDF_LIB) 608 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) $(Liste_BLAS) 606 609 607 610 Snowball : $(Dim_Snowball) $(mod_dim_communs) \ … … 627 630 $(Liste_Netcdf) \ 628 631 $(routines_communes) steps_time_loop.o \ 629 $(routine_elliptiques) $(NCDF_LIB) 632 $(routine_elliptiques) $(NCDF_LIB) $(MKL_LIB) $(Liste_BLAS) 630 633 631 634
Note: See TracChangeset
for help on using the changeset viewer.