问题描述:
错误使用 parpool
Parallel pool failed to start with the following error. For more detailed information, validate the
profile ‘Processes’ in the Cluster Profile Manager.
原因:
错误使用 parallel.internal.pool.AbstractInteractiveClient>iThrowWithCause
Failed to initialize the interactive session.
错误使用 parallel.internal.pool.AbstractInteractiveClient>iThrowIfBadParallelJobStatus
The interactive communicating job errored with the following message: An unexpected error
occurred accessing a parallel pool. The underlying error was: Failed to bind to endpoint:
tcp://tcpnodelay=localhost:27470/protocol/catapult
Cause: protectedInit():: No ports to bind!
Errors encoountered:
通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
.
解决方案:
原文链接: link(侵删)
具体内容(搬运于上述链接,侵删):
Starting a parpool using the ‘Processes’ parallel environment fails with more than 100 workers (2968710)
Modified: 09/13/2023
Description
When you start a parallel pool using the ‘Processes’ parallel environment with more than 100 workers, pool creation fails with a message that refers to “Failed to bind to endpoint”.
For example, this parpool command fails with an error like the following:
parpool(‘Processes’,101);
Parallel pool failed to start with the following error. For more detailed information, validate the profile ‘Processes’ in the Cluster Profile Manager.
Caused by:
Error using parallel.internal.pool.AbstractInteractiveClient>iThrowWithCause
Failed to initialize the interactive session.
Error using parallel.internal.pool.AbstractInteractiveClient>iThrowIfBadParallelJobStatus
The interactive communicating job errored with the following message: An unexpected error occurred accessing a parallel pool. The underlying error was: Failed to bind to endpoint: tcp://tcpnodelay=localhost:27470/protocol/catapult
Cause: protectedInit():: No ports to bind!
Errors encountered:
Address already in use
Email
Follow
Provide feedback
Workaround
Increase the port range of the workers.
- In MATLAB R2023a, open the taskStartup.m file of your local machine in the MATLAB editor.
open taskStartup.m
Alternatively, you can find taskStartup.m file of your local machine at this location:
Windows: \toolbox\parallel\user\taskStartup.m
Linux: /toolbox/parallel/user/taskStartup.m
- Add this command to your taskStartup.m file
pctconfig(‘portrange’,[27370 28370])