How do I import cluster profiles without access to a GUI?

조회 수: 5 (최근 30일)
Felix
Felix 2025년 3월 6일
댓글: Edric Ellis 2025년 3월 6일
I am trying to create and validate a cluster profile for slurm on a HPC server that runs linux.
Creating the profile is easily possible on my local desktop environment, following the steps in Install MATLAB Parallel Server for Slurm.
However, I find myself unable to validate my profile on the server, because I can't seem to import the profile without a GUI, as outlined in the section 'Validate the Cluster Profile'.
So, how do I import my new cluster profile via shell/command line on the server?

채택된 답변

Edric Ellis
Edric Ellis 2025년 3월 6일
You can use parallel.importProfile to do exactly this from within MATLAB on the server. You can't currently run cluster profile validation without a UI, but you could try running a simple batch command, or calling parpool directly.
I wonder if this is really what you want to do though? There are modes of operation where you can submit work to a remote cluster directly from your desktop machine. I.e. item 4.j from the section "Configure Client Machine" in the doc page you linked to - set up a remote connection to the cluster right from your desktop so you can submit work without having to log in directly to the cluster.
  댓글 수: 2
Felix
Felix 2025년 3월 6일
편집: Felix 2025년 3월 6일
I wonder if this is really what you want to do though?
Well, no. You are correct in assuming, I don't want to do that. I would of course like to run jobs from my desktop. But there's other problems with this:
If I understand correctly, i would need to specify the network address of the HPC as the 'ClusterHost' property of a cluster profile. How would I do that, if the HPC is not accessible directly via ssh, but instead via a ssh jump host, an intermediary server? I.e., to reach the HPC I would run the command :
ssh -J jump.address hpc.address
Edric Ellis
Edric Ellis 2025년 3월 6일
Unfortunately, jump hosts are not currently supported.

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

추가 답변 (1개)

Alison Eele
Alison Eele 2025년 3월 6일
Hi Felix,
There is a programmatic interface for importing a cluster profile see the documentation page here: https://www.mathworks.com/help/parallel-computing/parallel.importprofile.html
You may also want to be aware of some steps you can take to validate the cluster profile without access to a GUI using this MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/130554-how-do-i-validate-my-matlab-cluster-when-i-do-not-have-access-to-a-gui
If you run into any issues with getting set up I would recommend contacting our support teams for help.

카테고리

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

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by