Clear Filters
Clear Filters

run matlab on hpc

17 views (last 30 days)
Yan WANG
Yan WANG on 28 Feb 2022
Commented: prabhat kumar sharma on 3 Aug 2024 at 16:54
I am using the hpc in to run the matlab code, I used two versions to submit the sbatch scripts but failed. Can somebody tell me where I am wrong? Thanks a lot!!

Answers (1)

prabhat kumar sharma
prabhat kumar sharma on 19 Feb 2024
Hi Yan,
I understand you are facing issue with running a matlab job on your HPC Cluster.
I've noticed a couple of potential issues in the script you've provided. After reviewing several blogs about sbatch and mpirun, it seems that the MATLAB module isn't being loaded in your script. When you want to run a MATLAB script in batch mode, it's essential to use the -r flag to instruct MATLAB to run the specified script. Additionally, the -nodisplay and -nosplash flags are crucial to prevent MATLAB from attempting to use a graphical user interface.
Here are some resources that might be helpful in addressing your issue:
Typically, MATLAB manages its own parallel computing environment, which usually doesn't require the use of mpirun, unless you're specifically leveraging MPI-based features in MATLAB.
I hope this information proves to be useful for you!
  2 Comments
Bassem
Bassem on 2 Aug 2024 at 12:58
This sounds like a ChatGPT answer..
prabhat kumar sharma
prabhat kumar sharma on 3 Aug 2024 at 16:54
Hi Bassem,
I understand why you might think this is an AI-generated prompt, but I assure you these are standard steps that I personally thought would help Yan in debugging the issue. My sole intention was to assist him in navigating the problem effectively, hence the detailed response.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!