I have a question concerning the selection of GPUs using parpool and the Neural Network Toolbox. I'm using a system with 4 GPUs and share this system with other people. We would like to specify which GPUs are used in parpool.
For the use of a single GPU we use: gpuDevice(n);
Parpool, initialized by the ('ExecutionEnvironment','multi-gpu') option for trainNetwork() by default uses the max 4 workers but you can specify a specific amount, always using the first GPU and up: parpool('local', 2);
When two instances of parpool are initialised in two separate instances of Matlab it still uses only these first two GPUs. So two separate training sessions running on the same two GPUs.
I can't find anything on specifying specific GPUs for the par pool. So that user one can use GPU[1 2] and user two can use GPU[3 4].
Any help would be great.
System details:
– MATLAB Version: 9.2.0.556344 (R2017a)
– Parallel Computing Toolbox, Version 6.10
– Neural Network Toolbox, Version 10.0
– Linux 4.4.0-59-generic (14.04.1-Ubuntu)
– 4x GTX 1080
– 2 x Intel Xeon E5-2630v4
– 128Gb DDR4
Best Answer