Why is parallel poor button still gray and showing "No parallel poor" even already started?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Song Decn
am 30 Okt. 2021
Beantwortet: Raymond Norris
am 30 Okt. 2021
Hi, guys, I have written something that definitely needs parallel workers to boost the calculation. So I add the line
parpool('local');
into startup.m
Now the pool will be automatically started, but why the button below still shows "No parallel poor"?
Is there a better way to start it at startup?
0 Kommentare
Akzeptierte Antwort
Raymond Norris
am 30 Okt. 2021
It might be a bug that the icon isn't reflecting the state of the parallel pool properly. Nevertheless, I'm assuming you can run a parfor/spmd over the pool?
Keep in mind, if you call parpool('local'), you're getting the default number of workers to start up, just as if parfor started for you the first time. So in essence, you don't need to add this to startup. MATLAB will start it when you need it. You only need to explicitly call parpool if you don't want the default parameters (e.g., profile, number of workers, etc.).
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!