| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Submitting Jobs from MATLAB Command Window = |
| 4 | This document provides the steps to configure MATLAB to submit jobs to Cypress, retrieve results, and debug errors. |
| 5 | |
| 6 | == MATLAB client on Cypress == |
| 7 | With 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 === |
| 12 | Login to Cypress and start an interactive session and then start MATLAB (see [https://wiki.hpc.tulane.edu/trac/wiki/cypress/Matlab#RunningMATLABinteractively here]) |
| 13 | Configure MATLAB to run parallel jobs on your cluster by calling '''configCluster''', which only needs to be called once per version of MATLAB. |
| 14 | Please 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 | |
| 20 | Jobs will now default to the cluster rather than submit to the current node. |
| 21 | |
| 22 | When 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 == |
| 30 | With 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 === |
| 40 | In 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 | |