WikiPrint - from Polar Technologies

Porting on RedHat8

After maintenance of April 11 and 12 all the Irene machines of the TGCC will change OS (it will go from redhat7 to redhat8). As an addition of the change in OS old modules will not be available on redhat8 and we need to update compiler versions for our modules.

How to install your environment on redhat8 (skl and rome)

We suggest the user to use the igcmg environment (in bash) with a copy of the bashrc in his HOME.

ryyy999@irene: cp ~igcmg/MachineEnvironment/irene_next/bashrc  ~/.bashrc
ryyy999@irene: cp ~igcmg/MachineEnvironment/irene_next/bashrc_irene_next ~/.bashrc_irene_next

Additionally, you can complete the example of bashrc_irene_next file to create your favorite environment (alias, module load ...).

We strongly advice you to add the line module switch dfldatadir dfldatadir/genXXXX in your own .bashrc_irene_next.

WARNING : if you have a ~/.profile file, it's better to remove it to avoid any problem during the execution of a simulation with libIGCM

In this environment is specified:

WARNING : You cannot load in the same time the intel environment for compilation and models computation, AND ferret software. There are not compatible. It's why by default we propose an environment for post processing. The computation environment will be loaded by modipsl and libIGCM during the compilation and the running time.

Modifications need to be done in models

LMDZ

modify %BASE_LD in LMDZ/arch/arch-X64_IRENE.fcm

%BASE_LD   -i4 -r8 -auto -L/ccc/products/mkl-20.0.0/system/default/20.0.0/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread

ORCHIDEE

The new version of modules we now use on redhat8 can not handle to many files opened at the same time. When running LMDZOR on hybrid mode (mixed MPI-OpenMP), too many files text output files were opened in ORCHIDEE (out_orchidee_000x.000y). This has been changed in newer versions of ORCHIDEE: in revision 7792 for branch ORHIDEE_2_2 and 7790 in the trunk.

If you work with another version, do the following work-around in the code :

In modeles/ORCHIDEE/src_parallel/mod_orchidee_para.F90, comment the opening of the text output files and change to have numout=6, the output will now be sent to standard output for all cores.

!!!    OPEN(UNIT=numout,FILE=TRIM(fileout),ACTION='write',STATUS='unknown',FORM='formatted',IOSTAT=ierr)
numout=6

INCA

If you are working with a version older than rev 1050, you need to modify lunout parameter to use standard output file. For this in INCA/src/INCA_MOD/print_inca.F90 comment the opening of the text output files and change to have lunout=6

    !    open(UNIT=lunout,file=fileout, action='write',status='unknown', form='formatted', iostat=ierr2)
     lunout = 6

XIOS

If you are working with a version on XIOS/branchs/xios-2.5, you need to modify XIOS/arch/arch-X64_IRENE.fcm

%BASE_CFLAGS    -std=gnu++98 -diag-disable 1125 -diag-disable 279 -D__XIOS_EXCEPTION

Modifications for V6.2 configurations

Compilation and computation

Modify ARCH/arch-X64_IRENE.env

# Compile and running environnemnet at Irene Skylake 

set +e  
module purge
module load intel/20.0.0
module load mpi/openmpi/4.1.4
module load flavor/hdf5/parallel
module load hdf5/1.12.0
module load netcdf-fortran/4.5.3
module load mkl/20.0.0
module load feature/bridge/heterogenous_mpmd
module load c++/gnu/8.3.0
module load c/gnu/8.3.0

post-processing

Modify libIGCM/libIGCM_sys/libIGCM_sys_irene.ksh or libIGCM_sys_irene-amd.ksh to source new env_atlas_irene file.

if [ X${TaskType} = Xcomputing ] ; then
  IGCM_debug_Print 1 "Modules will be loaded later in IGCM_sys_activ_variables."
else
  module purge > /dev/null 2>&1
  . $( ccc_home -u igcmg)/MachineEnvironment/irene_next/env_atlas_irene > /dev/null 2>&1

  export PCMDI_MP=/ccc/work/cont003/igcmg/igcmg/PCMDI-MP
  export UVCDAT_ANONYMOUS_LOG=FALSE
fi

Modification for v6.1 configurations and older ones

compilation

For older configurations you may have to source the arch.env file for all the models other than XIOS (applies to IPSLCM5A2 but could be needed for other old configurations).

In that case add . ${arch_path}/arch-X64_IRENE.env; before the command that changes the directory in every models rules except for xios where the previous changes are enough.

gmake clean

Computation

Workflow CMIP6

Not yet available on redhat8