| 222 | | The ''parallel computing toolbox'' is available on Cypress. |
| 223 | | You can use up to 12 workers for shared parallel operations on a single node in the current MATLAB version. |
| | 222 | |
| | 223 | The ''parallel computing toolbox'' is available on Cypress. |
| | 224 | |
| | 225 | ===== Single node: worker count ===== |
| | 226 | |
| | 227 | Within a single-node Slurm allocation, MATLAB can use up to the number of CPUs allocated to the job according to '''SLURM_JOB_CPUS_PER_NODE''', which is limited to 20 CPUs on Cypress compute nodes. |
| | 228 | |
| | 229 | Also, in versions r2017b, r2020a, and r2022b, the request for `parpool('local')` may default to 12 workers because of MATLAB’s '''preferred number of workers''' setting. |
| | 230 | |
| | 231 | Otherwise, you can request the allocated size explicitly, for example `parpool('local', 20)`, but do not request more workers than '''SLURM_JOB_CPUS_PER_NODE'''. |
| | 232 | |
| | 233 | ===== Multiple nodes ===== |
| | 234 | |