how many NumWorkers do I have?

If I start a pool using "pmode start local 4" then try to connect to that pool via "p = gcp" I get p.NumWorkers = 0. But in the lower left corner it tells me the Number of workers is 4. How many workers do I have???

Respuestas (1)

Edric Ellis
Edric Ellis el 24 de Abr. de 2019

2 votos

There's a difference between pmode and parpool. Behind the scenes, they both share some functionality, and there's some ... unintended behaviour going on here. gcp is intended to work only with parpool, and not pmode. If you don't want to use the PMODE window, I suggest using instead
parpool('local', 4)
Right now, it doesn't work to mix pmode and parpool-type functionality.

1 comentario

Ivan Viti
Ivan Viti el 24 de Abr. de 2019
Unfortunately when I do "parpool('local',4)" Matlab ignores my breakpoints so that I can't debug my parallel code.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Preguntada:

el 23 de Abr. de 2019

Comentada:

el 24 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by