-

This site is deprecated and will be decommissioned shortly. For current information regarding HPC visit our new site: hpc.njit.edu

Difference between revisions of "GettingStartedWithSerialAndParallelMATLABOnLochness"

From NJIT-ARCS HPC Wiki
Jump to: navigation, search
Line 2: Line 2:
 
Following this procedure a user will be able to submit jobs to lochness or stheno from Matlab running locally on the user's computer. The version of Matlab on the user's computer must be the same as on the cluster, currently 2021a.
 
Following this procedure a user will be able to submit jobs to lochness or stheno from Matlab running locally on the user's computer. The version of Matlab on the user's computer must be the same as on the cluster, currently 2021a.
 
==Installing the Add-On==
 
==Installing the Add-On==
 +
 +
From the Matlab window, click on "Add-ons" and select "Get Add-Ons."
  
 
[[File:ClickOnAddons.png|900px]]
 
[[File:ClickOnAddons.png|900px]]
 +
 +
In the search bos enter "slurm" and click on the "magnifying glass icon."
 +
 +
Select "Parallel Computing Toolbox plugin for MATLAB Parallel Server with Slurm"
 +
 +
Alternatively, this Add-On can be downloaded directly from the [https://www.mathworks.com/matlabcentral/fileexchange/52807-parallel-computing-toolbox-plugin-for-matlab-parallel-server-with-slurm Mathworks] site.
 +
 
[[File:SlurmAddOn.png|1000px]]
 
[[File:SlurmAddOn.png|1000px]]
 +
 +
Click on "Install."
 +
 
[[File:ClickOnInstall.png|1000px]]
 
[[File:ClickOnInstall.png|1000px]]
 +
 +
The installation of the Add-On is complete. Click on "OK" the start the "Generic Profile Wizard for Slurm."
 +
 
[[File:InstallationComplete.png|900px]]
 
[[File:InstallationComplete.png|900px]]
 +
==Creating a Profile for Lochness==
 +
 +
 +
 
[[File:GenericProfile1.png|800px]]
 
[[File:GenericProfile1.png|800px]]
 
[[File:GenericProfile2.png|800px]]
 
[[File:GenericProfile2.png|800px]]
Line 18: Line 37:
 
[[File:GenericProfile10_1.png|800px]]
 
[[File:GenericProfile10_1.png|800px]]
 
[[File:GenericProfile11.png|800px]]
 
[[File:GenericProfile11.png|800px]]
 +
==Submitting a Serial Job==
 
[[File:c=parcluster_1.png|900px]]
 
[[File:c=parcluster_1.png|900px]]
 
[[File:BatchEnterPasswd.png|900px]]
 
[[File:BatchEnterPasswd.png|900px]]
 
[[File:BatchHostname.png|900px]]
 
[[File:BatchHostname.png|900px]]
 
[[File:MonitorJobs.png|900px]]
 
[[File:MonitorJobs.png|900px]]
 +
==Submitting a Parallel Function==
 
[[File:SubmitParallel.png|900px]]
 
[[File:SubmitParallel.png|900px]]
 
[[File:JobFinished.png|900px]]
 
[[File:JobFinished.png|900px]]
 
[[File:FetchOutputs.png|900px]]
 
[[File:FetchOutputs.png|900px]]
 +
==Submitting a Script Requiring a GPU==
 
[[File:GpuSubmitArgs.png|900px]]
 
[[File:GpuSubmitArgs.png|900px]]
 
[[File:GpuSubmit.png|900px]]
 
[[File:GpuSubmit.png|900px]]
 
[[File:GpuDiary.png|900px]]
 
[[File:GpuDiary.png|900px]]
 +
==Load and Plotting Results from A Job==
 
[[File:PlotDemoSub.png|900px]]
 
[[File:PlotDemoSub.png|900px]]
 
[[File:load_x.png|900px]]
 
[[File:load_x.png|900px]]
 
[[File:plot_x.png|900px]]
 
[[File:plot_x.png|900px]]

Revision as of 17:04, 28 June 2021

This page is under construction, Will be completed by 6/30 Following this procedure a user will be able to submit jobs to lochness or stheno from Matlab running locally on the user's computer. The version of Matlab on the user's computer must be the same as on the cluster, currently 2021a.

Installing the Add-On

From the Matlab window, click on "Add-ons" and select "Get Add-Ons."

ClickOnAddons.png

In the search bos enter "slurm" and click on the "magnifying glass icon."

Select "Parallel Computing Toolbox plugin for MATLAB Parallel Server with Slurm"

Alternatively, this Add-On can be downloaded directly from the Mathworks site.

SlurmAddOn.png

Click on "Install."

ClickOnInstall.png

The installation of the Add-On is complete. Click on "OK" the start the "Generic Profile Wizard for Slurm."

InstallationComplete.png

Creating a Profile for Lochness

GenericProfile1.png GenericProfile2.png GenericProfile3.png GenericProfile4.png GenericProfile5.png GenericProfile6.png GenericProfile7 1.png GenericProfile8.png GenericProfile9.png GenericProfile10 1.png GenericProfile11.png

Submitting a Serial Job

C=parcluster 1.png BatchEnterPasswd.png BatchHostname.png MonitorJobs.png

Submitting a Parallel Function

SubmitParallel.png JobFinished.png FetchOutputs.png

Submitting a Script Requiring a GPU

GpuSubmitArgs.png GpuSubmit.png GpuDiary.png

Load and Plotting Results from A Job

PlotDemoSub.png Load x.png Plot x.png