wiki:DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/SimulationsonAda

Version 2 (modified by mguimberteau, 6 years ago) (diff)

--

Memory issues on Ada

If you run the model on Ada (at Idris), after the compilation, you have to follow these steps to resolve memory issues with ORCHIDEE-MICT on Ada:

  1. Use intel/2016.2:
module load intel/2016.2
  1. In libIGCM_sys/libIGCM_sys_ada.ksh, modify:
#- HOST_MPIRUN_COMMAND                                                                                                                                                         
if ( [ "X${LOADL_STEP_TYPE}" = "XPARALLEL" ] || [ "X${LOADL_STEP_TYPE}" = "XSERIAL" ] ) ; then
  typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time poe"}
else
  typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time mpirun"}
fi

into:

#- HOST_MPIRUN_COMMAND                                                                                                                                                         
if ( [ "X${LOADL_STEP_TYPE}" = "XPARALLEL" ] || [ "X${LOADL_STEP_TYPE}" = "XSERIAL" ] ) ; then
  typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time mpirun"}
else
  typeset -r HOST_MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND:="/usr/bin/time mpirun"}
fi
  1. Create your new Job with ins_job
  1. Then, in the header of the Job, modify:
# @ job_type = parallel

into:

# @ job_type = mpich
  1. (this is optional: you need to add 4 OMP if you still have memory errors). In config.card, modify:
OOL= (orchidee_ol, orchidee_ol, 63MPI)

into:

OOL= (orchidee_ol, orchidee_ol, 63MPI,4OMP)