How to stop parfor from launching a parallel pool automatically?
20 ビュー (過去 30 日間)
古いコメントを表示
Mohammad Abouali
2014 年 10 月 12 日
コメント済み: Mohammad Abouali
2014 年 10 月 13 日
Whenever MATLAB reaches parfor it will try to start a parallel pool and then run the parfor in parallel.
How can I stop parfor from launching a parallel pool automatically? I mean I want parfor to use a parallel pool if it was launched before. But once the code reaches parfor, if there is no parallel pool already launched then it just runs the parfor in serial without launching a parallel pool.
Any help is appreciated.
0 件のコメント
採用された回答
Oleg Komarov
2014 年 10 月 12 日
編集済み: Oleg Komarov
2014 年 10 月 13 日
In the preferences:
.
To edit parallel preferences programmatically:
ps = parallel.Settings;
ps.Pool.AutoCreate = false;
3 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Parallel for-Loops (parfor) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!