Changeset 5035 for LMDZ6/trunk/arch


Ignore:
Timestamp:
Jul 9, 2024, 2:46:21 PM (5 months ago)
Author:
abarral
Message:

Update/add arch

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
    32module 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
     3module load PrgEnv-gnu
     4module load cray-hdf5-parallel
     5module load netcdf-hdf5parallel/gnu/10.3
     6
     7# netcdf-hdf5parallel has weird naming conventions => hotfix...
     8# Used in netcdf95 cmake compilation
     9rm -rf netcdf-hdfparallel-hotfix
     10mkdir -p netcdf-hdfparallel-hotfix
     11cp -r /opt/cray/pe/netcdf-hdf5parallel/4.9.0.5/gnu/10.3/lib/pkgconfig/netcdf*_parallel.pc netcdf-hdfparallel-hotfix
     12cd netcdf-hdfparallel-hotfix || exit 1
     13mv netcdf-fortran_parallel.pc netcdf-fortran.pc
     14PKG_CONFIG_PATH="$(readlink -f .):$PKG_CONFIG_PATH"
     15# Another similar hotfix to find mpich.pc
     16PKG_CONFIG_PATH="/opt/cray/pe/mpich/8.1.28/ofi/crayclang/16.0/lib/pkgconfig/:$PKG_CONFIG_PATH"
     17export PKG_CONFIG_PATH
     18cd - || exit 1
  • LMDZ6/trunk/arch/arch-X64_ADASTRA-GNU.fcm

    r4923 r5035  
    11%COMPILER            mpif90
     2%CCOMPILER           mpicc  # xios
    23%LINK                mpif90
     4%FPP                 cpp
    35%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
    1728%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"
     1NETCDF_INCDIR="-I$(nf-config --includedir) -I$(nc-config --includedir)"
     2# Ugly hack for orchidee <=2.0
     3NETCDF_LIBDIR="-L${NETCDF_DIR}/lib" # for some reason on adastra `nf-config --flibs` is empty
     4NETCDF_LIB="-lnetcdf -lnetcdff"  # same as above
     5NETCDF95_INCDIR="-I$(pwd)/../../include"
     6NETCDF95_LIBDIR="-L$(pwd)/../../lib"
     7NETCDF95_LIB="-lnetcdf95"
    48
    5 IOIPSL_INCDIR="-I$LMDGCM/../../lib -I$LMDGCM/../IOIPSL/inc"
    6 IOIPSL_LIBDIR="-L$LMDGCM/../../lib -L$LMDGCM/../IOIPSL/lib"
     9# Exported
     10IOIPSL_INCDIR="-I$(pwd)/../IOIPSL/inc -I$(pwd)/../IOIPSL/lib"
     11IOIPSL_LIBDIR="-L$(pwd)/../IOIPSL/inc -L$(pwd)/../IOIPSL/lib"
    712IOIPSL_LIB="-lioipsl"
    813
    9 XIOS_INCDIR="-I$LMDGCM/../XIOS/inc"
    10 XIOS_LIBDIR="-L$LMDGCM/../XIOS/lib"
     14# Exported
     15XIOS_INCDIR="-I$(pwd)/../XIOS/inc"
     16XIOS_LIBDIR="-L$(pwd)/../XIOS/lib"
    1117XIOS_LIB="-lxios -lstdc++"
    1218
    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
     20ORCH_INCDIR="-I$(pwd)/../ORCHIDEE/inc -I$(pwd)/../ORCHIDEE/lib"
     21ORCH_LIBDIR="-L$(pwd)/../ORCHIDEE/inc -L$(pwd)/../ORCHIDEE/lib"
  • LMDZ6/trunk/arch/arch-X64_JEANZAY.env

    r4532 r5035  
    11module purge
    2 module load intel-all/19.0.4
     2module load intel-compilers/19.0.4
     3 module load intel-mkl/19.0.4
    34module load hdf5/1.10.5-mpi
    45module load netcdf/4.7.2-mpi
    56module load netcdf-fortran/4.5.2-mpi
    67module load netcdf95
     8module load subversion/1.9.7
     9module load cmake
    710
    8 module load gcc/6.5.0
     11export FC=mpiifort
     12export CPP="icc -E"
     13export 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=""
     1NETCDF_INCDIR="-I$(nf-config --includedir) -I$(nc-config --includedir)"  # nc required for xios
     2# Ugly hack for orchidee <=2.0
     3NETCDF_LIBDIR="-L$(nf-config --flibs | sed -e "s/-L//")"
    64NETCDF_LIB="-lnetcdff -lnetcdf"
     5NETCDF95_INCDIR="-I$(pwd)/../../include"
     6NETCDF95_LIBDIR="-L$(pwd)/../../lib"
     7NETCDF95_LIB="-lnetcdf95"
    78
    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
     10IOIPSL_INCDIR="-I$(pwd)/../IOIPSL/inc -I$(pwd)/../IOIPSL/lib"
     11IOIPSL_LIBDIR="-L$(pwd)/../IOIPSL/inc -L$(pwd)/../IOIPSL/lib"
    1412IOIPSL_LIB="-lioipsl"
    1513
    16 XIOS_INCDIR="-I$LMDGCM/../XIOS/inc"
    17 XIOS_LIBDIR="-L$LMDGCM/../XIOS/lib"
     14# Exported
     15XIOS_INCDIR="-I$(pwd)/../XIOS/inc"
     16XIOS_LIBDIR="-L$(pwd)/../XIOS/lib"
    1817XIOS_LIB="-lxios -lstdc++"
    1918
    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
     20ORCH_INCDIR="-I$(pwd)/../ORCHIDEE/inc -I$(pwd)/../ORCHIDEE/lib"
     21ORCH_LIBDIR="-L$(pwd)/../ORCHIDEE/inc -L$(pwd)/../ORCHIDEE/lib"
Note: See TracChangeset for help on using the changeset viewer.