Changeset 5035 for LMDZ6/trunk/arch
- Timestamp:
- Jul 9, 2024, 2:46:21 PM (5 months ago)
- Location:
- LMDZ6/trunk/arch
- Files:
-
- 9 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/arch/arch-X64_ADASTRA-GNU.env
r4924 r5035 1 # Compile and running environnement at Adastra 2 set +e 1 #!/bin/bash 3 2 module purge 4 module load craype-x86-genoa 5 module load craype-network-ofi 6 module load libfabric/1.15.2.0 7 module load PrgEnv-gnu/8.3.3 8 module load cray-dsmml/0.2.2 9 module load cray-libsci/23.02.1.1 10 module load cray-mpich/8.1.21 11 module load craype/2.7.19 12 module load cray-hdf5-parallel/1.12.2.1 13 module load cray-netcdf-hdf5parallel/4.9.0.1 14 module load cray-fftw/3.3.10.3 3 module load PrgEnv-gnu 4 module load cray-hdf5-parallel 5 module load netcdf-hdf5parallel/gnu/10.3 6 7 # netcdf-hdf5parallel has weird naming conventions => hotfix... 8 # Used in netcdf95 cmake compilation 9 rm -rf netcdf-hdfparallel-hotfix 10 mkdir -p netcdf-hdfparallel-hotfix 11 cp -r /opt/cray/pe/netcdf-hdf5parallel/4.9.0.5/gnu/10.3/lib/pkgconfig/netcdf*_parallel.pc netcdf-hdfparallel-hotfix 12 cd netcdf-hdfparallel-hotfix || exit 1 13 mv netcdf-fortran_parallel.pc netcdf-fortran.pc 14 PKG_CONFIG_PATH="$(readlink -f .):$PKG_CONFIG_PATH" 15 # Another similar hotfix to find mpich.pc 16 PKG_CONFIG_PATH="/opt/cray/pe/mpich/8.1.28/ofi/crayclang/16.0/lib/pkgconfig/:$PKG_CONFIG_PATH" 17 export PKG_CONFIG_PATH 18 cd - || exit 1 -
LMDZ6/trunk/arch/arch-X64_ADASTRA-GNU.fcm
r4923 r5035 1 1 %COMPILER mpif90 2 %CCOMPILER mpicc # xios 2 3 %LINK mpif90 4 %FPP cpp 3 5 %AR ar 4 %ARFLAGS rs 5 %MAKE gmake 6 %FPP mpif90 -E 7 %FPP_FLAGS -P -traditional -I${FFTW_INC} 8 %FPP_DEF NC_DOUBLE FFT_FFTW 9 %BASE_FFLAGS -I${FFTW_INC} -march=znver1 -fcray-pointer -c -fdefault-real-8 -fdefault-double-8 -ffree-line-length-none -fallow-argument-mismatch -fno-align-commons 10 %PROD_FFLAGS -O3 11 %DEV_FFLAGS -g -O2 12 %DEBUG_FFLAGS 13 %MPI_FFLAGS 14 %OMP_FFLAGS -fopenmp 15 %BASE_LD -L${FFTW_DIR} -lfftw3 16 %MPI_LD 6 %ARFLAGS rU 7 %MAKE make 8 %FPP_FLAGS -P -traditional 9 %FPP_DEF NC_DOUBLE 10 11 %BASE_FFLAGS -cpp -ffree-line-length-0 -fdefault-real-8 -DNC_DOUBLE 12 %BASE_CFLAGS -w -std=c++11 -D__XIOS_EXCEPTION # xios 13 # /!\ LD must be written in Makefile syntax 14 %BASE_LD -Wl,-rpath=$(shell dirname $(shell readlink -f "$(shell which mpif90)"))/../lib:$(shell nf-config --prefix)/lib -lstdc++ 15 %BASE_INC -D__NONE__ # xios 16 17 %PROD_FFLAGS -O3 -fallow-argument-mismatch 18 %PROD_CFLAGS -O3 -DBOOST_DISABLE_ASSERTS # xios 19 20 %DEV_FFLAGS -Wall -fbounds-check -fallow-argument-mismatch 21 %DEV_CFLAGS -g -O2 # xios 22 23 %DEBUG_FFLAGS -g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow -O0 -fstack-protector-all -fbacktrace -finit-real=snan -fallow-argument-mismatch 24 %DEBUG_CFLAGS -g -DBZ_DEBUG # xios 25 26 %MPI_FFLAGS -fcray-pointer 27 %MPI_LD -L$(shell dirname $(shell readlink -f "$(shell which mpif90)"))/../lib -lmpi 17 28 %OMP_LD -fopenmp 29 %OMP_FFLAGS -fopenmp -fcray-pointer 30 31 %CPP cpp # xios 32 %FPP cpp -P # xios 33 %MAKE make # xios 34 35 -
LMDZ6/trunk/arch/arch-X64_ADASTRA-GNU.path
r4923 r5035 1 NETCDF_INCDIR="-I ${NETCDF_DIR}/include" 2 NETCDF_LIBDIR="-L ${NETCDF_DIR}/lib" 3 NETCDF_LIB="-lnetcdf -lnetcdff" 1 NETCDF_INCDIR="-I$(nf-config --includedir) -I$(nc-config --includedir)" 2 # Ugly hack for orchidee <=2.0 3 NETCDF_LIBDIR="-L${NETCDF_DIR}/lib" # for some reason on adastra `nf-config --flibs` is empty 4 NETCDF_LIB="-lnetcdf -lnetcdff" # same as above 5 NETCDF95_INCDIR="-I$(pwd)/../../include" 6 NETCDF95_LIBDIR="-L$(pwd)/../../lib" 7 NETCDF95_LIB="-lnetcdf95" 4 8 5 IOIPSL_INCDIR="-I$LMDGCM/../../lib -I$LMDGCM/../IOIPSL/inc" 6 IOIPSL_LIBDIR="-L$LMDGCM/../../lib -L$LMDGCM/../IOIPSL/lib" 9 # Exported 10 IOIPSL_INCDIR="-I$(pwd)/../IOIPSL/inc -I$(pwd)/../IOIPSL/lib" 11 IOIPSL_LIBDIR="-L$(pwd)/../IOIPSL/inc -L$(pwd)/../IOIPSL/lib" 7 12 IOIPSL_LIB="-lioipsl" 8 13 9 XIOS_INCDIR="-I$LMDGCM/../XIOS/inc" 10 XIOS_LIBDIR="-L$LMDGCM/../XIOS/lib" 14 # Exported 15 XIOS_INCDIR="-I$(pwd)/../XIOS/inc" 16 XIOS_LIBDIR="-L$(pwd)/../XIOS/lib" 11 17 XIOS_LIB="-lxios -lstdc++" 12 18 13 ORCH_INCDIR="-I$LMDGCM/../../lib" 14 ORCH_LIBDIR="-L$LMDGCM/../../lib" 15 16 OASIS_INCDIR="-I$LMDGCM/../../oasis3-mct/BLD/build/lib/psmile.MPI1" 17 OASIS_LIBDIR="-L$LMDGCM/../../oasis3-mct/BLD/lib" 18 OASIS_LIB="-lpsmile.MPI1 -lscrip -lmct -lmpeu" 19 20 INCA_INCDIR="-I$LMDGCM/../INCA/build/inc" 21 INCA_LIBDIR="-L$LMDGCM/../INCA/build/lib" 22 INCA_LIB="-lchimie" 19 # Exported 20 ORCH_INCDIR="-I$(pwd)/../ORCHIDEE/inc -I$(pwd)/../ORCHIDEE/lib" 21 ORCH_LIBDIR="-L$(pwd)/../ORCHIDEE/inc -L$(pwd)/../ORCHIDEE/lib" -
LMDZ6/trunk/arch/arch-X64_JEANZAY.env
r4532 r5035 1 1 module purge 2 module load intel-all/19.0.4 2 module load intel-compilers/19.0.4 3 module load intel-mkl/19.0.4 3 4 module load hdf5/1.10.5-mpi 4 5 module load netcdf/4.7.2-mpi 5 6 module load netcdf-fortran/4.5.2-mpi 6 7 module load netcdf95 8 module load subversion/1.9.7 9 module load cmake 7 10 8 module load gcc/6.5.0 11 export FC=mpiifort 12 export CPP="icc -E" 13 export CC=icc 14 -
LMDZ6/trunk/arch/arch-X64_JEANZAY.path
r4532 r5035 1 # $Id$ 2 #NETCDF_LIBDIR="-L$NETCDFFORTRAN_LIBDIR -L$NETCDF_LIBDIR -lnetcdf -lnetcdff" 3 #NETCDF_INCDIR=-I$NETCDFFORTRAN_INCDIR 4 NETCDF_INCDIR="" 5 NETCDF_LIBDIR="" 1 NETCDF_INCDIR="-I$(nf-config --includedir) -I$(nc-config --includedir)" # nc required for xios 2 # Ugly hack for orchidee <=2.0 3 NETCDF_LIBDIR="-L$(nf-config --flibs | sed -e "s/-L//")" 6 4 NETCDF_LIB="-lnetcdff -lnetcdf" 5 NETCDF95_INCDIR="-I$(pwd)/../../include" 6 NETCDF95_LIBDIR="-L$(pwd)/../../lib" 7 NETCDF95_LIB="-lnetcdf95" 7 8 8 NETCDF95_INCDIR=-I$NETCDF95_ROOT/include/NetCDF95 9 NETCDF95_LIBDIR=-L$NETCDF95_ROOT/lib 10 NETCDF95_LIB=-lnetcdf95 11 12 IOIPSL_INCDIR="-I$LMDGCM/../../lib -I$LMDGCM/../IOIPSL/inc" 13 IOIPSL_LIBDIR="-L$LMDGCM/../../lib -L$LMDGCM/../IOIPSL/lib" 9 # Exported 10 IOIPSL_INCDIR="-I$(pwd)/../IOIPSL/inc -I$(pwd)/../IOIPSL/lib" 11 IOIPSL_LIBDIR="-L$(pwd)/../IOIPSL/inc -L$(pwd)/../IOIPSL/lib" 14 12 IOIPSL_LIB="-lioipsl" 15 13 16 XIOS_INCDIR="-I$LMDGCM/../XIOS/inc" 17 XIOS_LIBDIR="-L$LMDGCM/../XIOS/lib" 14 # Exported 15 XIOS_INCDIR="-I$(pwd)/../XIOS/inc" 16 XIOS_LIBDIR="-L$(pwd)/../XIOS/lib" 18 17 XIOS_LIB="-lxios -lstdc++" 19 18 20 ORCH_INCDIR="-I$LMDGCM/../../lib" 21 ORCH_LIBDIR="-L$LMDGCM/../../lib" 22 ORCH_LIB= 23 24 OASIS_INCDIR="-I$LMDGCM/../../oasis3-mct/BLD/build/lib/psmile.MPI1" 25 OASIS_LIBDIR="-L$LMDGCM/../../oasis3-mct/BLD/lib" 26 OASIS_LIB="-lpsmile.MPI1 -lscrip -lmct -lmpeu" 27 28 INCA_INCDIR="-I$LMDGCM/../INCA/build/inc" 29 INCA_LIBDIR="-L$LMDGCM/../INCA/build/lib" 30 INCA_LIB="-lchimie" 19 # Exported 20 ORCH_INCDIR="-I$(pwd)/../ORCHIDEE/inc -I$(pwd)/../ORCHIDEE/lib" 21 ORCH_LIBDIR="-L$(pwd)/../ORCHIDEE/inc -L$(pwd)/../ORCHIDEE/lib"
Note: See TracChangeset
for help on using the changeset viewer.