Problem with starting parpool

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.
Walter Roberson
Walter Roberson 2025 年 7 月 4 日

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

回答 (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.

1 件のコメント

Anthony Crockford
Anthony Crockford 2018 年 11 月 29 日
Thank, this was helpfull!

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

カテゴリ

ヘルプ センター および File ExchangeParallel 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