Request exclusive use of slurm batch nodes for a parpool that is less than the total number of cores.

조회 수: 4 (최근 30일)
Hi, is there a way to tell a slurm matlab job to run in exclusive mode on 2 nodes even though the parpool is using fewer than the total number of cores? Our slurm batch nodes have 128 cores, but I am only requesting a parpool of 240, but I would still like the job to run exclusively on the 2 nodes. We are using matlab parallel server and my batch job looks like:
#!/bin/sh
#SBATCH --partition=fermi
#SBATCH --job-name=test240
#SBATCH --output=output240-%j.txt
#SBATCH --error=error240-%j.txt
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=4g
#SBATCH --time=30:00
source /usr/share/Modules/init/sh
module load matlab
matlab -batch "addpath ('/sdf/home/r/renata/matlab/jaehyun');test240"
And test240.m has these settings:
c=parcluster;
c.AdditionalProperties.QueueName='fermi';
c.AdditionalProperties.EnableDebug=true
c.AdditionalProperties.NumNodes=2;
c.AdditionalProperties.ProcsPerNode = 121;
p=c.parpool(240);
Thanks for any insight,
Renata

답변 (1개)

Raymond Norris
Raymond Norris 2022년 2월 24일
Renat your MATLAB code looks similar to installations we've supported in the past. If that's true, run
c.AdditionalProperties
Do you see the RequireExclusiveNode field? If so, you can set it as such
c.AdditionalProperties.RequireExclusiveNode = true;
If the field is not there, contact me and I can help you resolve this.
  댓글 수: 7
Renat Dart
Renat Dart 2022년 2월 28일
Hi Raymond, I checked c.AdditionalProperties and there is no RequireExclusiveNode field. What do I need to do to allow that to be used if a user chooses?
Thanks,
Renata
Raymond Norris
Raymond Norris 2022년 2월 28일
Hi Renat. Contact me directly and I'll work to get this resolved for your installation.

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by