wiki:Documentation/UserGuide/ParallelObelix

How to run ORCHIDEE in parallel on Obelix

Compiling: this is now done in default modipsl!!

When you use modipsl to install ORCHIDEE on Obelix (LSCE computers), ORCHIDEE is compiled in sequential by default. If you intend to run ORCHIDEE in parallel, please follow the instructions to compile in parallele mode.

  1. Go to modipsl/util directory and open AA_make.gdef file :

>   cd  modipsl/util
>   emacs AA_make.gdef  
  1. Look for lxiv8 and change following lines :
#-Q- lxiv8    F_C = ifort -c -cpp
#-Q- lxiv8    F_O = -O  $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
#-Q- lxiv8    F_L = ifort

into

#-Q- lxiv8    F_C = mpif90 -c -cpp
#-Q- lxiv8    F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
#-Q- lxiv8    F_L = mpif90

  1. Regenerate the Makefile :
>  ./ins_make
  1. Compile as usual : (clean first if you already compiled in sequential mode)
# Tag and older versions
> cd ../modeles/ORCHIDEE_OL
> gmake clean
> gmake orchiee_ol; gmake forcesoil; gmake teststomate

# or trunk version
> cd ../modeles/ORCHIDEE
> gmake clean
> gmake driver

Running

It is now possible to launch ORCHIDEE on several MPI processes. See here a simple test cas. For this job, all input files must be found in the run directory before submitting the job to queue.

  1. Prepare run directory that should contain all input files and the executable, as for exemple using sequential test cas.
  1. Create the job by saving following into a file named Job_test. This is an exemple with 4 processes :
    ######################
    ## OBELIX      LSCE ##
    ######################
    #PBS -N MyTest
    #PBS -m a
    #PBS -j oe
    #PBS -q medium
    #PBS -o Script_Output_SECHSTOM.000001
    #PBS -S /bin/ksh
    #PBS -v BATCH_NUM_PROC_TOT=4
    #PBS -l nodes=1:ppn=4
    
    cd $PBS_O_WORKDIR
    mpirun -np ${BATCH_NUM_PROC_TOT} orchidee_ol
    
  1. Submit the job :
qsub Job_test
  1. See more information at the LSCE intranet concerning obelix queue system.
Last modified 4 years ago Last modified on 06/05/14 16:26:26