Matlab parfor on Slurm
33 views (last 30 days)
I want to run a parfor on matlab using Slurm job submission on the cluster.
I want to use 15 workers for the parfor. Each worker should calls an external executable program and runs it using a set of distinc parameters. The external program needs 1 CPU(core) for each run.
I know that inside matlab m file I should set the parpool to 15. My question is that which of these two sbach job submission configurations I should to submit the job:
Jason Ross on 10 Apr 2020
Note that you can specify these options as part of the ResourceTemplate property in the cluster (which would set this for every submission using the profile) or on the cluster object itself (which you could set on a per-job basis) for a Slurm cluster. See the "Slurm" section of the documentation here.
You can also set the Parallel Preferences to request 15 workers by default, or set the number of workers to 15 in the cluster profile.