-

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

GettingStartedWithSerialAndParallelMATLABOnLochness

From NJIT-ARCS HPC Wiki
Jump to: navigation, search

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 box 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 or Stheno

The following steps will create a profile for lochness (or stheno). Click "Next" to begin.

GenericProfile1.png

Unix is already selected. Click "Next" to continue.

GenericProfile2.png

This "Submission Mode" screen determines whether or not to use a "shared" or "nonshared" submission node. Since Matlab installed on you personal computer or laptop does not user a shared job location storage, select "No" where indicated and select "Net" to continue.


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