How can you use CPU with the Parallel Computing Toolbox?

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 日

1 投票

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

カテゴリ

ヘルプ センター および File ExchangeGPU Computing についてさらに検索

質問済み:

2017 年 5 月 25 日

コメント済み:

2017 年 11 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by