My understanding was that if registering an implicit cluster with e.g. registerDoParallel(cores = 14)
then at the end of the loop the cluster is automatically closed.
In trying to debug another issue I wanted to see if the links to the workers (I don't know the correct term) where indeed closed.
Onther doMC documentation under "Getting information about the parallel backend": "To find out how many workers foreach is going to use, you can use the getDoParWorkers function:
> getDoParWorkers()
"
I expected that after running a dopar loop this would go back to default. However, I notice that it's being remembered since if I currently run getDoParWorkers()
it returns 14 which is what I declared in my code block with registerDoParallel(cores = 14)
However if I do registerDoParallel(cores = 10)
then do a dopar loop, then getDoParWorkers()
returns 10.
Does this mean there is still a registered parallel back end even though I completed the loop?