Hello community,
I tried to run a code which worked for a 2011 version of Matlab. Initially, the code used matlabpool to pool the cores. Now I had to replace matlabpool by parpool for the newest version of Matlab. However, I get the following message error:
Caused by: Error using parallel.internal.pool.InteractiveClient>iThrowWithCause (line 675) Failed to start pool. Error using parallel.Job/addClientPath (line 862) Invalid value specified for property 'NumPathsToAppend'. Allowed values are positive integer scalars.
What am I doing wrong?
Best regards.

댓글 수: 2

BVDKH
BVDKH 2019년 12월 26일
I had to add my paths after starting a pool to solve the error.

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

답변 (1개)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2017년 12월 18일

4 개 추천

This error may occur due to inaccessibility of pathdef.m for MATLAB. Please try the following workaround
Try running the following commands in the MATLAB Command Window:
>> restoredefaultpath >> savepath
Once done, restart MATLAB and then try to start a parallel pool again. If there is an error in accessing the file:
C:\Program Files\MATLAB\R2016b\toolbox\local\pathdef.m, then delete the pathdef.m file so that on execution of the command, the file gets recreated.

카테고리

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

제품

질문:

2017년 12월 16일

댓글:

2025년 7월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by