首页 > 解决方案 > mpi 应用程序无法连接到 smpd 管理器 (null):55846 错误 1722

问题描述

使用Microsoft HPC Pack 2008 SDKMicrosoft SDK 9

代码(ReadText.cpp):

#include "stdafx.h"
#include<iostream>
#include<mpi.h>
using namespace std;
int main(int argc, char* argv[])
{
    cout << "before mpi init\n";
    cout.flush();

    MPI_Init(&argc, &argv);

    cout << "after mpi init\n";
    cout.flush();

    MPI_Finalize();
    cout << "after mpi finit\n";
    cout.flush();
    return 0;
}

运行命令行后:

mpiexec -n 1 ReadText.exe

得到输出:

before mpi init

Aborting: mpi appplication on LAPTOP-TL0C61UH is unable to connect to the smpd manager on (null):56041 error 1722

job aborted:
[ranks] message

[0] fatal error
Fatal error in MPI_Init: Other MPI error, error stack:
MPI_Init(argc_p=0x00CFFA1C, argv_p=0x00CFFA08) failed

运行mpiexec-debug得到此输出:https ://justpaste.it/2elu1

无法通过互联网找到解决此问题的有用信息...

标签: c++mpi

解决方案


我有和你一样的错误。我完成的事情是卸载 Microsoft HPC Pack 2008 SDK 和 Microsoft SDK 9。并使用其 SDK 安装 Microsoft MPI v10.1.2。

你可以在这里找到它。


推荐阅读