wiki:Documentation/UserGuide/TestCaseBatch

Version 3 (modified by acosce, 11 years ago) (diff)

--

How to run a simple test case with ORCHIDEE offline with a batch job

First prepare a run directory following the how to How to run a simple test case with ORCHIDEE.

Then prepare a job according to computer environement and submit it.

MPI

Exemple at curie/TGCC

  • First prepare a run directory following the how to How to run a simple test case with ORCHIDEE. But instead of using wget to copy the files, they can be found in the directory /ccc/work/cont003/dsm/p86ipsl/IGCM and can be linked or copied directly. The path is the same.
  • Then create a text file as follow and save it as Job_curie :
    #!/bin/ksh
    ######################
    ## CURIE   TGCC/CEA ##
    ######################
    #MSUB -r test             # name of the job
    #MSUB -o Script_Output    # name of output file for standard messages
    #MSUB -e Script_Output    # name of output file for error messages
    #MSUB -eo
    #MSUB -n 4                # Request numbre of cores
    #MSUB -T 1800             # Time limit in seconds
    #MSUB -Q test             # Queue test, priority acces
    #MSUB -q standard
    #MSUB -A gen6328          # Set your project id
    BATCH_NUM_PROC_TOT=$BRIDGE_MSUB_NPROC
    set +x
    
    cd ${BRIDGE_MSUB_PWD}
    /usr/bin/time ccc_mprun -n 4 ./orchidee_ol
    
  • Submit the job :
ccc_msub Job_curie
  • Survey the job while it is still in queue :
ccc_mstat -u

  • Kill the job if needed, take the jobid from the ccc_mstat command :
ccc_mdel jobid

Exemple at ada/IDRIS

to come

MPI_OMP

Exemple at Curie/TGCC

#!/bin/bash 
#MSUB -r test                 # Request name 
#MSUB -n 32                   # Total number of tasks to use (MPI)
#MSUB -c 2                    # Number of threads per task to use (OMP)
#MSUB -N 4                    # Number of nodes  = 32*2/16 = 4
#MSUB -T 1800                 # Elapsed time limit in seconds 
#MSUB -q standard             # Choosing thin nodes
#MSUB -Q test                 # Choosing test Queue
#MSUB -o Script_output        # Standard output
#MSUB -e Script_output        # Error output
#MSUB -A gen****              # submission group number


set -x 
cd ${BRIDGE_MSUB_PWD}
export KMP_STACKSIZE=2g
export KMP_LIBRARY=turnaround
export MKL_SERIAL=YES
export OMP_NUM_THREADS=2         # = number of thread ask in header (2 - 4 - 8 ) 


ccc_mprun ./lmdz.x

Exemple at ada/IDRIS

to come