how many NumWorkers do I have?

11 ビュー (過去 30 日間)
Ivan Viti
Ivan Viti 2019 年 4 月 23 日
コメント済み: Ivan Viti 2019 年 4 月 24 日
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???
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 23 日
Interesting, I see that as well.

サインインしてコメントする。

回答 (1 件)

Edric Ellis
Edric Ellis 2019 年 4 月 24 日
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 件のコメント
Ivan Viti
Ivan Viti 2019 年 4 月 24 日
Unfortunately when I do "parpool('local',4)" Matlab ignores my breakpoints so that I can't debug my parallel code.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by