44 | | You can run MATLAB code but no graphics. |
| 44 | You will get to the MATLAB command-line and can run MATLAB code here but no graphics. |
| 45 | |
| 46 | |
| 47 | == Running MATLAB in a batch mode == |
| 48 | You can also submit your MATLAB job to the batch nodes (compute nodes) on Cypress. To do so, please first make sure that the MATLAB module has been loaded, and then launch "matlab" with the "-nodesktop -nodisplay -nosplash" option as shown in the sample SLURM job script below. |
| 49 | |
| 50 | {{{#!bash |
| 51 | #!/bin/bash |
| 52 | #SBATCH --qos=normal # Quality of Service |
| 53 | #SBATCH --job-name=matlab # Job Name |
| 54 | #SBATCH --time=24:00:00 # WallTime |
| 55 | #SBATCH --nodes=1 # Number of Nodes |
| 56 | #SBATCH --ntasks-per-node=1 # Number of tasks (MPI processes) |
| 57 | #SBATCH --cpus-per-task=1 # Number of threads per task (OMP threads) |
| 58 | |
| 59 | module load matlab |
| 60 | matlab -nodesktop -nodisplay -nosplash < mymatlabprog.m |
| 61 | }}} |
| 62 | |
| 63 | |
| 64 | === Running MATLAB in Parallel with Multithreads === |
| 65 | |
| 66 | === Running MATLAB with Automatic Offloading === |
| 67 | |
| 68 | |