Is there a way for a worker to see how many workers are in the parpool?
1 view (last 30 days)
Show older comments
Hi,
Is there a way for a worker to see how many workers are in a parpool?
Currently i have this, but i have to change the value of NumWorkers before the parpool is started and for the first pctRunOnAll.
NumWorkers = 32;
ParallelPool = parpool(NumWorkers);
pctRunOnAll NumWorkers = 32;
pctRunOnAll ParaScript
I know that i can do..
ParallelPool.NumWorkers
..in the parent script but this doesn't work in a worker.
Thanks
0 Comments
Answers (0)
See Also
Categories
Find more on Parallel Computing Fundamentals in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!