Personal tools
You are here: Home Forum Use How to properly finish Salome in slurm scripts

How to properly finish Salome in slurm scripts

Up to Use

How to properly finish Salome in slurm scripts

Posted by Christophe Trophime at November 06. 2018

Hi,
I've tried to run Salome TUI in a SLURM batch script with singularity:

#!/bin/bash -l

 

#SBATCH -e salome_yspz0z.err

#SBATCH -o salome_yspz0z.out

#SBATCH -t 11:00:00

#SBATCH -p partition

#SBATCH -N 1

#SBATCH -n 1

#SBATCH --ntasks-per-node=1

#SBATCH --mail-user=first.lastname@domain

#SBATCH --mail-type=ALL

 

# DYNAMIC VARIABLES

module load gcc/6.3.0 openmpi/2.0.2 singularity/2.4.2

 

mpirun singularity exec -H ${HOME}:/home/${USER} -B /scratch -B /mnt \

    ${LUSTRE}/singularity_images/salome.simg \

    salome -t -b -m GEOM,SMESH,HIFIMAGNET $HIFIMAGNET/HIFIMAGNET_Cmd.py args:--cfg=file.yaml

 

The script is running fine except that it reaches the time limit whereas the python script has done his job much earlier...
It seems that the script never receives the notification that salome has properly finished...

Any idea what may be wrong?

 

Re: How to properly finish Salome in slurm scripts

Posted by Christophe Bourcier at November 07. 2018

Hi,

You can add sys.exit() at the end of the script.

Don't forget to add the option "-w1" on the salome command line to shutdown all Salome processes.

Christophe

Powered by Ploneboard
Document Actions