How to stop parfor from launching a parallel pool automatically?
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Abouali
am 12 Okt. 2014
Kommentiert: Mohammad Abouali
am 13 Okt. 2014
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 Kommentare
Akzeptierte Antwort
Oleg Komarov
am 12 Okt. 2014
Bearbeitet: Oleg Komarov
am 13 Okt. 2014
In the preferences:
.
To edit parallel preferences programmatically:
ps = parallel.Settings;
ps.Pool.AutoCreate = false;
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Parallel for-Loops (parfor) finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!