I would like to train a smallish network using cpu cores in parallel rather than gpu as they are slower.
1 次查看(过去 30 天)
显示 更早的评论
aaDL.options.ValidationFrequency = 50;
%aaDL.options.ExecutionEnvironment = 'cpu';
aaDL.options.ExecutionEnvironment = 'parallel'; % as an alternative
0 个评论
回答(1 个)
Joss Knight
2023-9-8
setenv CUDA_VISIBLE_DEVICES -1
when you first start MATLAB, assuming you are running everything locally.
However, as a general rule you can't gain any benefit training in parallel on the CPU on a single machine. MATLAB is already running everything multithreaded.
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!