#!/bin/bash
#SBATCH --job-name=ProgPAR_Hybrid
#SBATCH -o ./%x.%j.%N.out # output file
#SBATCH -e ./%x.%j.%N.err # errors file
#SBATCH -p E5
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=2 # number of MPI processes per node
#SBATCH --cpus-per-task=8 # number of OpenMP threads per MPI process
#SBATCH --time=0-00:10:00 # day-hours:minutes:seconds
#SBATCH --mail-user=first_name.last_name@ens-lyon.fr
#SBATCH --mail-type=BEGIN,END,FAIL
#
echo "The job ${SLURM_JOB_ID} is running on these nodes:"
echo ${SLURM_NODELIST}
echo
#
cd $SLURM_SUBMIT_DIR # go to the work / submission directory
#
module purge
module use /applis/PSMN/debian11/E5/modules/all
module load OpenMPI/4.1.1-GCC-10.3.0
#
export OMP_NUM_THREADS=8
mpirun -np 2 -bind-to socket -npersocket 1 ./ProgPAR_Hybrid_MPI_OpenMP.c.exe