how to set corenumber on cluster for MATLAB+MPI-fortran parallel jobs

Hi,
I have a MATLAB job like this
parfor i = 1:100
system('mpirun -np N fortran_mpi.exe')
end
In case i set parfor corenum for MATLAB as M, and processor number for fortran MPI command as N, I wonder how should I set an optimial SLURM script to submit and run my MATLAB job on cluster. Is this one good? I just set the cpu-per-task as the N*M.
#SBATCH --ntasks=1
#SBATCH --threads-per-core=1
#SBATCH --cpus-per-task=N*M
thanks

Respuestas (1)

Categorías

Más información sobre Third-Party Cluster Configuration en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Mzo. de 2021

Respondida:

el 18 de En. de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by