Skip to content
Snippets Groups Projects
Commit bd239eaa authored by hautreux's avatar hautreux
Browse files

premier test NEMO sur Adastra-cpu en environement Intel

parent e5949042
No related branches found
No related tags found
No related merge requests found
# Parameters to change accordingly with the README.md
cores # Nb of cores (MPI tasks)
ncore_node # Nb of cores per node
nnode # Nb of nodes
jpni # Nb of processors in the X direction
jpnj # Nb of processors in hte Y direction
# generic ifort compiler options for linux
#
# NCDF_HOME root directory containing lib and include subdirectories for netcdf4
# HDF5_HOME root directory containing lib and include subdirectories for HDF5
# XIOS_HOME root directory containing lib for XIOS
# OASIS_HOME root directory containing lib for OASIS
#
# NCDF_INC netcdf4 include file
# NCDF_LIB netcdf4 library
# XIOS_INC xios include file (taken into accound only if key_iomput is activated)
# XIOS_LIB xios library (taken into accound only if key_iomput is activated)
# OASIS_INC oasis include file (taken into accound only if key_oasis3 is activated)
# OASIS_LIB oasis library (taken into accound only if key_oasis3 is activated)
#
# FC Fortran compiler command
# FCFLAGS Fortran compiler flags
# FFLAGS Fortran 77 compiler flags
# LD linker
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries
# FPPFLAGS pre-processing flags
# AR assembler
# ARFLAGS assembler flags
# MK make
# USER_INC complete list of include files
# USER_LIB complete list of libraries to pass to the linker
# CC C compiler used to compile conv for AGRIF
# CFLAGS compiler flags used with CC
#
# Note that:
# - unix variables "$..." are accpeted and will be evaluated before calling fcm.
# - fcm variables are starting with a % (and not a $)
#
%NCDF_HOME /opt/cray/pe/netcdf/default/intel/19.0/
%HDF5_HOME $HDF5_DIR
%XIOS_HOME $xios_path
%OASIS_HOME /not/defiled
%NCDF_INC -I%NCDF_HOME/include
%NCDF_LIB -L%NCDF_HOME/lib -lnetcdff -lnetcdf -L%HDF5_HOME/lib -lhdf5_hl -lhdf5 -lhdf5
%XIOS_INC -I%XIOS_HOME/inc
%XIOS_LIB -L%XIOS_HOME/lib -lxios -lstdc++
%OASIS_INC -I%OASIS_HOME/build/lib/mct -I%OASIS_HOME/build/lib/psmile.MPI1
%OASIS_LIB -L%OASIS_HOME/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip
%CPP cpp
%FC mpifort -c -cpp
%FCFLAGS -i4 -r8 -O3 -fp-model precise -fno-alias
%FFLAGS %FCFLAGS
%LD mpifort
%LDFLAGS
%FPPFLAGS -P -C -traditional
%AR ar
%ARFLAGS rs
%MK gmake
%USER_INC %XIOS_INC %OASIS_INC %NCDF_INC -I/opt/cray/pe/hdf5/1.12.2.1/intel/19.0/include
%USER_LIB %XIOS_LIB %OASIS_LIB %NCDF_LIB -L/opt/cray/pe/hdf5/1.12.2.1/intel/19.0/lib -lhdf5
%CC cc
%CFLAGS -O0
################################################################################
################### Projet XIOS ###################
################################################################################
%CCOMPILER mpicc
%FCOMPILER mpif90
%LINKER mpif90 -nofor-main
%BASE_CFLAGS -diag-disable 1125 -diag-disable 279 -D BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -D BOOST_NO_CXX11_DELETED_FUNCTIONS
%PROD_CFLAGS -O3 -D BOOST_DISABLE_ASSERTS
#%DEV_CFLAGS -g -traceback
%DEV_CFLAGS -g
%DEBUG_CFLAGS -DBZ_DEBUG -g -traceback -fno-inline
%BASE_FFLAGS -D__NONE__
%PROD_FFLAGS -O3
#%DEV_FFLAGS -g -traceback
%DEV_FFLAGS -g
%DEBUG_FFLAGS -g -traceback
%BASE_INC -D__NONE__
%BASE_LD -lstdc++
%CPP mpicc -EP
%FPP cpp -P
%MAKE gmake
#!/bin/bash
#SBATCH --job-name=nemo # nom du job
#SBATCH -N 10
#SBATCH --ntasks=1920 # Nombre total de processus MPI
#SBATCH --ntasks-per-node=192
#SBATCH --threads-per-core=1
##SBATCH --cpus-per-task=1
#SBATCH -C GENOA
#SBATCH -A dci
#SBATCH --time=01:00:00 # Temps d?exécution maximum demande (HH:MM:SS)
#SBATCH --output=nemo.out # Nom du fichier de sortie
#SBATCH --error=nemo.err # Nom du fichier d'erreur (ici commun avec la sortie)
#
set -e
set -x
source env_bench
resolution=1
cp ../release-4.0/tests/BENCH/EXP00/* .
jpni=40
jpnj=48
sed -e "s/jpni *=.*/jpni = ${jpni}/" -e "s/jpnj *=.*/jpnj = ${jpnj}/" -e "s/nn_itend *=.*/nn_itend = 20000/" -e "s/ln_timing *=.*/ln_timing = .true./" namelist_cfg_orca${resolution}_like > namelist_cfg
time srun --mpi=cray_shasta ./nemo
module load PrgEnv-intel/8.3.3 craype-x86-genoa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment