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

조회 수: 1 (최근 30일)
Feng Cheng
Feng Cheng 2021년 3월 2일
답변: Alvaro 2023년 1월 18일
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

답변 (1개)

Alvaro
Alvaro 2023년 1월 18일
I am not too familiar with SLURM but from this question and others I think it looks good.
It appears you might need N*M + 1 to account for a MATLAB client or head worker though.

카테고리

Help CenterFile Exchange에서 Cluster Configuration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by