-

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 30: Line 30:
 
[[File:GenericProfile1.png|800px]]
 
[[File:GenericProfile1.png|800px]]
  
IN the "Operating System" screen "Unix" is already selected. Click "Next" to continue.
+
In the "Operating System" screen "Unix" is already selected. Click "Next" to continue.
  
 
[[File:GenericProfile2.png|800px]]
 
[[File:GenericProfile2.png|800px]]
  
This "Submission Mode" screen determines whether or not to use a "shared" or "nonshared" submission mode. Since Matlab installed on your personal computer or laptop does not use a shared job location storage, select "No" where indicated and select "Next" to continue.
+
This "Submission Mode" screen determines whether or not to use a "shared" or "nonshared" submission mode. Since Matlab installed on your personal computer or laptop does not use a shared job location storage, select "No" where indicated and click "Next" to continue.
  
  
Line 67: Line 67:
  
 
[[File:GenericProfile7_1.png|800px]]
 
[[File:GenericProfile7_1.png|800px]]
 +
 +
In the "License" screen make sure to select "Network license manager" and click "Next" to continue.
  
 
[[File:GenericProfile8.png|800px]]
 
[[File:GenericProfile8.png|800px]]

Revision as of 16:02, 30 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 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

In the "Operating System" screen "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 mode. Since Matlab installed on your personal computer or laptop does not use a shared job location storage, select "No" where indicated and click "Next" to continue.


GenericProfile3.png

Click "Next" to continue.

GenericProfile4.png

In the "Connection Details" screen, enter the cluster host, either "lochness.njit.edu" or "stheno.njit.edu." Enter your UCID for the username.

Select "No" for the "Do you want to use an identity file to log in to the cluster" option and click next to continue.


GenericProfile5.png

In the "Cluster Details" screen enter the full path to the directory on lochness to store the Matlab job files. In the case the directory is $HOME/MDCS. MDCS stands for Matlab Distributed Computing Server. It is not necessary to name this directory MDCS. This directory can be named anything you wish. To determine the value of $HOME, log onto lochness and run the following:

login-1-45 ~ >: echo $HOME
/home/g/guest24

Make sure to check the box "Use unique subfolders."

Click "Next" to continue.

GenericProfile6.png

In the "Workers" screen enter "512" for the number of workers and "/opt/site/apps/matlab/R2021a" for "MATLAB installation folders for workers." Click "Next" to continue.

GenericProfile7 1.png

In the "License" screen make sure to select "Network license manager" and click "Next" to continue.

GenericProfile8.png

GenericProfile9.png

GenericProfile10 1.png

GenericProfile11.png

Submitting a Serial Job

C=parcluster 1.png AdditionalArguments.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