how many NumWorkers do I have?

조회 수: 9 (최근 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 CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by