Changes between Initial Version and Version 1 of Matlab-Slurm


Ignore:
Timestamp:
07/13/21 12:52:24 (3 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Matlab-Slurm

    v1 v1  
     1[[PageOutline]]
     2
     3= Submitting Jobs from MATLAB Command Window =
     4This document provides the steps to configure MATLAB to submit jobs to Cypress, retrieve results, and debug errors.
     5
     6== MATLAB client on Cypress ==
     7With this method, you can submit MATLAB jobs from MATLAB running on an interactive session. See how to run MATLAB interactively [https://wiki.hpc.tulane.edu/trac/wiki/cypress/Matlab#RunningMATLABinteractively here].
     8
     9[[Image(https://docs.google.com/drawings/d/e/2PACX-1vQOfTErIgP29J7ZXKSIj3JbaxJeWm5xHjOXoDUQbN_qfpD95CycAvPGgXbkGw8rQ74XiXMENLr8YKD4/pub?w=755&h=200)]]
     10
     11=== Configuration ===
     12Login to Cypress and start an interactive session and then start MATLAB (see [https://wiki.hpc.tulane.edu/trac/wiki/cypress/Matlab#RunningMATLABinteractively here])
     13Configure MATLAB to run parallel jobs on your cluster by calling '''configCluster''', which only needs to be called once per version of MATLAB. 
     14Please be aware that running '''configCluster''' more than once per version will reset your cluster profile back to default settings and erase any saved modifications to the profile. 
     15
     16{{{
     17>> configCluster
     18}}}
     19
     20Jobs will now default to the cluster rather than submit to the current node.
     21
     22When you encounter an error ''Unrecognized function or variable 'configCluster'. '', try
     23
     24{{{
     25>> rehash toolboxcache
     26}}}
     27
     28
     29== MATLAB client on your local computer ==
     30With this method, you can submit MATLAB jobs to Cypress from your local computer.
     31
     32[[Image(https://docs.google.com/drawings/d/e/2PACX-1vTo_5IOHBbnAZbhvUUoEFcX3AMtZ8wC1GZXmdlfl-pFk-AQGW_V0SjXX8QojF6OmAeizyMMNslFQSyL/pub?w=755&h=200)]]
     33
     34=== Prerequisites ===
     35* You need to have MATLAB installed on your laptop/desktop that must be the same version of MATLAB on Cypress (r2020a or later).
     36* You must have the Matlab '''Parallel Computing Toolbox''' installed.  To see what toolboxes are installed, type the '''ver''' command in the Matlab command window.  You should see '''Parallel Computing Toolbox''' listed.
     37* Make sure you have an account on Cypress and can ''ssh'' to Cypress from your local laptop/desktop.
     38
     39=== Installation and Configuration ===
     40In order to submit jobs from your laptop/desktop, you will need to install a custom Matlab plugin scripts that are configured how to interact with the Slurm job scheduler on Cypress.  Use the links below to download the script package.
     41