creating a custom parallel pool leads to fetchNext error

12 views (last 30 days)
I created a parallel pool with 11 workers. I have a PC with 6 cores and 12 logical processors.
parpool('local11',11);
`gcp` does return the pool.
>> p = gcp();
>> p
p =
Pool with properties:
Connected: true
NumWorkers: 11
Cluster: local
AttachedFiles: {}
IdleTimeout: 30 minute(s) (24 minutes remaining)
SpmdEnabled: true
When `fetchNext(ff)` is called, it errors out with:
parallel:fevalqueue:FetchNextUnequalQueues
fetchNext can only be used on Futures submitted to the same parallel pool.
C:\Program Files\MATLAB\R2016a\toolbox\distcomp\cluster\+parallel\@FevalFuture\FevalFuture.m, FevalFuture.fetchNext, 210
The function was created with `ff(i) = parfeval(p, @myfunc,` ` where `p = gcp();`.
Any idea why I'm getting that error?

Accepted Answer

Cameron Taggart
Cameron Taggart on 27 May 2016
Lesson learned: if you create a new parallel pool, `clear` the workspace.

More 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!