can we assign number of CPUs or number of GPUs should be working in DNN ?
1 次查看(过去 30 天)
显示 更早的评论
Hi ,
please i need running image classification for DNN by CPUs and GPUs , so is there specif command in Matlab can i assign how many CPUs or GPUs should be worked for doing the classification DNN application ?.
0 个评论
采纳的回答
Walter Roberson
2021-2-8
My understanding is that only one GPU will be used. The interface to GPUs only permits one GPU to be assigned per process -- if a process switches between GPUs then the current GPU calculation for the process gets reset and discarded.
To control the maximum number of CPUs, see https://www.mathworks.com/help/matlab/ref/maxnumcompthreads.html or create a parpool that is configured for the appropriate number of CPUs.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel and Cloud 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!