- Do you have two GPUs in your machine? You only mention one. If you do, what happens when you type " parpool('local',2); spmd, gpuDevice, end " ?
- Did you mean to be using shallow networks, or were you trying to do deep learning? Have you tried using trainNetwork with 'ExecutionEnvironment' 'multi-gpu'?
Full range of performance of the GPU calculation with neural network
3 views (last 30 days)
Show older comments
Hello,
I have the problem that my GPU (NVIDIA QUADRO M4000) does not bring full performance in neural networks despite GPU parallel compunting. I also tried other cards but did not get any better results either.
Can someone tell me why this may be?
I have already tried it with gpuArrays but only one GPU is used and not two as expected.
[net,tr] = train(net,traindata, targetclass,'useParallel','yes','useGPU','yes');
5 Comments
Joss Knight
on 19 Nov 2017
Edited: Joss Knight
on 19 Nov 2017
I see you are using 6 workers but you only have two GPUs. So the most each could be used is 33% of the time on each worker. You should only open a pool of two workers, one per GPU.
Answers (0)
See Also
Categories
Find more on Parallel and Cloud in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!