creating a custom parallel pool leads to fetchNext error
3 views (last 30 days)
Show older comments
Cameron Taggart
on 27 May 2016
Answered: Cameron Taggart
on 27 May 2016
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?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Parallel for-Loops (parfor) 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!