[IFPEN] Example for simulations on cluster (ORION)

As explained in Lagun’s infrastructure, simulations can be run remotely on Linux PC or clusters.
Here is an example of the configuration file to be imported or reported in Simulation configuration tab of Simulation_launcher app:

The simulator script SubmitJob.csh should be located on Orion / Linux file system and contains the command to submit the job on the cluster:

#!/bin/csh 

dos2unix sbatch_run.csh 
chmod u+x sbatch_run.csh 

sbatch -W sbatch_run.csh

Note the mandatory option of sbatch -W in order to keep waiting for job’s end before communicating with simulation-launcher.
The « running_dir » should be on the Linux file system.
The other files (simulation_dir) can be located on the local file system (your PC Windows or Linux), they will be copied on the Linux file system to perform the simulation.

Note that a variant of the configuration example is proposed to avoid to copy across the network the (numerous or heavy) files that are necessary for the simulations but that do not contain the parameters changed by Lagun (common files for all simulations). You can create an archive file of those files and store them on the Linux file system and just add a line in your script to untar the archive file :

#!/bin/csh 

tar xvfz /network/home/irsrvhome1/R11/sinoquet/Orion_simu/simuFiles.tgz

dos2unix sbatch_run.csh
chmod u+x sbatch_run.csh

sbatch -W sbatch_run.csh

The two simulator configurations for Orion cluster (all the files necessary to run the simulation example) are here

Do not forget to indicate the study number (NUMERO_ETUDE) in the file sbatch_run.csh

1 Like