Borrar filtros
Borrar filtros

无法开启并行运算

40 visualizaciones (últimos 30 días)
S
S el 12 de Ag. de 2023
Respondida: S el 22 de Jul. de 2024 a las 3:43
开启并行运算失败,并报以下错误
错误使用 parallel.internal.pool.AbstractInteractiveClient>iThrowWithCause
Failed to initialize the interactive session.
出错 parallel.internal.pool.AbstractInteractiveClient/start (第 143 行)
iThrowWithCause( 'parallel:convenience:FailedToInitializeInteractiveSession', err );
出错 parallel.internal.pool.AbstractClusterPool>iStartClient (第 874 行)
spmdInitialized = client.start(sessionBuildFcn, sessionInfo, numWorkers, cluster, ...
出错 parallel.internal.pool.AbstractClusterPool.hBuildPool (第 636 行)
iStartClient(client, sessionInfo, forceSpmdEnabled, cluster, supportRestart, argsList);
出错 parallel.internal.pool.doParpool (第 22 行)
pool = parallel.internal.pool.AbstractClusterPool.hBuildPool(constructorArgs{:});
出错 parpool (第 118 行)
pool = parallel.internal.pool.doParpool(sessionInfo, varargin{:});
出错 parallel.internal.parpool.getOrCreateCurrentPool (第 13 行)
pool = parpool(varargin{:});
出错 parallel.internal.pool.PoolArrayManager.getOrAutoCreateWithCleanup (第 44 行)
[cleanPool, wasCreated] = parallel.internal.parpool.getOrCreateCurrentPool(varargin{:});
出错 pctTryCreatePoolIfNecessary (第 28 行)
pool = parallel.internal.pool.PoolArrayManager.getOrAutoCreateWithCleanup();
出错 parallel_function (第 423 行)
[isPoolRunning, pool] = pctTryCreatePoolIfNecessary();
原因:
错误使用 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: resolve: 请求的名称有效,但是找不到请求的类型的数据。 [system:11004].

Respuestas (2)

海粟 吴
海粟 吴 el 1 de Jun. de 2024
I encounter the same problem
  1 comentario
S
S el 22 de Jul. de 2024 a las 3:39
The reason for this problem is that there is no connection to the network (including LAN). This is a problem with the network communication protocol. It seems that the host name cannot be resolved without connecting to the network.

Iniciar sesión para comentar.


S
S el 22 de Jul. de 2024 a las 3:43
The reason for this problem is that there is no connection to the network (including LAN). This is a problem with the network communication protocol. It seems that the host name cannot be resolved without connecting to the network. So as long as you are connected to the network (or local area network), even if you cannot access the Internet, as long as you can ensure that the host name can be resolved to the IP address of the computer, there will be no error. But how to run under the completely offline model (without network cable) may require other settings?

Categorías

Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!