creating a custom parallel pool leads to fetchNext error

15 vues (au cours des 30 derniers jours)
Cameron Taggart
Cameron Taggart le 27 Mai 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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Parallel Computing Fundamentals dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by