MATLAB: How do workers in mdce automatically select GPUs if multiple are available

gpuMATLAB Parallel ServermdceParallel Computing Toolbox

If multiple workers and GPUs are available on one node, will the worker choose the "idle" GPU to achieve load balancing through GPUs, or always "automatically" choose the default GPU unless the task select a specific one?

Best Answer

Workers use the function 'selectGPU' to determine which GPU device to use. Type
help selectGPU
in MATLAB for more details.