How to stop parfor from launching a parallel pool automatically?
20 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mohammad Abouali
il 12 Ott 2014
Commentato: Mohammad Abouali
il 13 Ott 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 Commenti
Risposta accettata
Oleg Komarov
il 12 Ott 2014
Modificato: Oleg Komarov
il 13 Ott 2014
In the preferences:
.
To edit parallel preferences programmatically:
ps = parallel.Settings;
ps.Pool.AutoCreate = false;
3 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Parallel for-Loops (parfor) in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!