[MATLAB] MATLAB2023a开启并行池遇到的问题

[MATLAB] MATLAB2023a开启并行池遇到的问题

问题描述:

错误使用 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.

  1. 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

  1. Add this command to your taskStartup.m file

pctconfig(‘portrange’,[27370 28370])

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值