I'm starting with spmd. My first prepared code runs by pasting into command window, but crashes Matlab when I run the script with the same content. Now I'm trying on the PC with probably only one physical worker (the collegue says that second is virtual) and it shows problems with running paralel pool (eg. Undefined function or variable 'matlab.internal.getSettingsRoot'.) . However the toolbox is installed and the pasted code runs ok and creates the composites properly.

댓글 수: 3

Edric Ellis
Edric Ellis 2015년 9월 1일
What release of MATLAB are you using? Do you have a minimal reproduction script that demonstrates the problem? (Scripts containing spmd blocks should work just fine, so this may well turn out to be an installation problem somewhere...)
Brendan Hamm
Brendan Hamm 2015년 9월 1일
Additionally you should actually expect a performance decrease if you have only one physical worker as virtual cores are sharing resources with the physical.
Wojciech
Wojciech 2015년 9월 2일
thank you, there was a problem with using the path together with the function name

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

 채택된 답변

Shruti Sapre
Shruti Sapre 2015년 9월 1일

1 개 추천

Hello,
The error you mentioned (Undefined function or variable 'matlab.internal.getSettingsRoot') occurs sometimes when a custom pathdef.m has been implemented or when the path used by MATLAB cannot find some basic MATLAB folders. You could try running the below commands and restarting MATLAB to remove any modifications made to your path.
>>restoredefaultpath;
>>rehash toolboxcache;
>>savepath;
Please note that this will remove any modifications you have made to your path; it will also remove third party toolboxes and support packages. (You will need to reinstall them)
Hope this helps!
-Shruti

댓글 수: 1

Wojciech
Wojciech 2015년 9월 2일
thank you - the problem was with path as you wrote :)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Parallel Computing에 대해 자세히 알아보기

태그

질문:

2015년 8월 29일

댓글:

2015년 9월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by