Matlab 2016 parpool only connects to 1 worker

조회 수: 8 (최근 30일)
Saumya
Saumya 2017년 5월 9일
답변: Khadija Bouaita 2022년 12월 4일
My machine has 8 cores. I have tried changing the number of workers in parallel preferences, tried making a new local profile, tried parpool(8); none of these seem to work. I have Matlab 9.0.0.341360 (R2016a). My machine has windows 10. I tried parpool on a different machine with 16 cores and Matlab 2016a, encountered the same problem. On this machine, the validation step of a new cluster connected to 16 workers in job test and SPMD job test, but back to 1 worker in actual parpool. I checked bug reports, and this does not seem to be a known bug. What can I do to use the maximum number of workers?
  댓글 수: 1
Edric Ellis
Edric Ellis 2017년 5월 10일
This is definitely not expected. Please contact MathWorks support to resolve this.

댓글을 달려면 로그인하십시오.

답변 (2개)

Harsh
Harsh 2017년 5월 12일
Make sure the Parallel Computing Toolbox is installed and licensed for use by running the following commands: https://www.mathworks.com/matlabcentral/answers/225996-how-can-i-tell-if-the-parallel-computing-toolbox-installed#answer_264780
I assume you have run the cluster validation for the "local" profile and have the "Preferred number of workers in a parallel pool" property set to >= number of cores on your machine. Instructions for this can be found here:
Run the following command and make sure the machine has the expected number of cores:
>> feature('numcores')
You can also manually start a parallel pool and configure the number of workers. For example:
>> obj = parcluster
>> obj.NumWorkers = 2
>> parpool(2)
Having verified all the above, if the issue still persists, please contact technical support here: https://www.mathworks.com/support/contact_us/
Please be sure to provide a detailed description of the issue and attach any relevant files / code / examples required to investigate the issue.

Khadija Bouaita
Khadija Bouaita 2022년 12월 4일
x=23

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by