can we assign number of CPUs or number of GPUs should be working in DNN ?

1 回表示 (過去 30 日間)
Furat Alobaidy
Furat Alobaidy 2021 年 2 月 8 日
回答済み: Walter Roberson 2021 年 2 月 8 日
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 ?.

採用された回答

Walter Roberson
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 件)

カテゴリ

Help Center および File ExchangeParallel and Cloud についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by