How can you use CPU with the Parallel Computing Toolbox?

조회 수: 2 (최근 30일)
Sergi Torres
Sergi Torres 2017년 5월 25일
댓글: dhikra H 2017년 11월 22일
I need to run a Convolutional Neural Networks code, and this requires the PCT but I don't have a NVIDIA GPU. There used to be a parameter in trainingOptions named 'ExecutionEnvironment' where you could choose 'cpu' instead of 'gpu' but it seems to be obsolete.
Is there any other way??
opts = trainingOptions('sgdm', ...
'Momentum', 0.9, ...
'InitialLearnRate', 0.001, ...
'LearnRateSchedule', 'piecewise', ...
'LearnRateDropFactor', 0.1, ...
'LearnRateDropPeriod', 8, ...
'L2Regularization', 0.004, ...
'MaxEpochs', 40, ...
'MiniBatchSize', 128, ...
'Verbose', true);
cifar10Net = trainNetwork(X_train, Labels_train, layers, opts);

채택된 답변

mizuki
mizuki 2017년 5월 25일
CNN on CPU and 'ExecutionEnvironment' option are introduced in R2017a. If you are using R2016b or previous versions, you need GPU to run it or upgrade MATLAB.
  댓글 수: 1
dhikra H
dhikra H 2017년 11월 22일
hello, I use CNN on CPU with matlab 2017b and when i put parallel options in 'ExecutionEnvironment' it display an error indicat that The CUDA runtime failed to initialize correctly. This can occur with some older CUDA drivers. Thanks for help

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by