Question regarding parallel computing

1 view (last 30 days)
Hello,
Could you please confirm whether we need to "stop" parallel computing after using parfor.
I just installed the 2019 version and the bottom left corner tells me I have been using parallel computing for X minutes. However, my code has only a small section where parfor is used. This makes me think that I should stop parallel computation somewhere. Could you please confirm this and if so, tell me what the best way to stop parallel computing is?
Thank you,
Anthony

Accepted Answer

Walter Roberson
Walter Roberson on 12 Oct 2019
No, the pool will time out after about 30 minutes and it will shut itself down.
However, during that time it will continue to use resources. If you are in an environment where you need to pay for use, you would probably want to shut the pool down as soon as you are sure you are done with it.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!