I have a MATLAB job like this
parfor i = 1:100
system('mpirun -np N fortran_mpi.exe')
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.