Is there a way for a worker to see how many workers are in the parpool?

1 view (last 30 days)
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

Answers (0)

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!