MATLAB Answers

Runing MATLAB on HPC and connection Status

2 views (last 30 days)
Rahul Shinde
Rahul Shinde on 26 May 2020
Commented: Rahul Shinde on 27 May 2020
How I can get HPC connection status whether HPC is already connected to my system using Matlab commands?I don't want to see the Cluster profile ,just want to know the status of HPC with my system matlab.It happens that HPC is already connected but as I am not able to see connection status thus It ends with revalidation

  0 Comments

Sign in to comment.

Accepted Answer

Jason Ross
Jason Ross on 26 May 2020
I believe you are asking if you already have a pool open? See the "Determine Size of Current Pool" section of the parpool documentation.
If you are looking for the number of busy workers on a cluster or something like that, you can get that information from parcluster.

  3 Comments

Rahul Shinde
Rahul Shinde on 26 May 2020
@Jasson Ross
I have following scenario:
First time connecting matlab to hpc :
I set cluster profile then click validate.Then in Validation results it completes authentication,pool job test,parallel pool test.It takes around some 20-30 minutes.
Now
if I restart system then again I need to do the complete process as that matlab instant is over.So I want to know that how to identfiy that your system is already conected to HPC or not.
Jason Ross
Jason Ross on 26 May 2020
  1. You don't need to validate the cluster profile to connect to the HPC cluster. Validation is a tool to see if the cluster integration is configured properly. It runs a collection of trivial task in the various modes to ensure things work. As long as you validate once successfully you don't need to do it every time (unless if you change something in the profile, the cluster changes, etc)
  2. You can open a pool with parpool (see the documentation links I provided above). You can do this directly from the command line. The default is to open a pool using whatever cluster profile is set at the default -- but there are options to do other things. See also the example in the link that will tell you how many workers you have - 0 means no active pool, some number more than that means you have a pool of that size.
  3. You can use parcluster (see doc link above) to make a connection to the cluster to check its status, running jobs, etc.
  4. You can use commands like batch to submit a job to your cluster and then return to get the results later. You can also use commands like findJob to find jobs and check their state.
Rahul Shinde
Rahul Shinde on 27 May 2020
This is very helpful.Thank you Jasson.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by