MATLAB Answers

Question regarding parallel computing

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

  0 Comments

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 12 Oct 2019
 Accepted Answer

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.

  0 Comments

Sign in to comment.