使用 Microsoft HPC Pack 2008 SDK
和 Microsoft 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.it2elu1
在互联网上找不到解决这个问题的有用信息......
我遇到了和你一样的错误,我所做的就是卸载微软HPC Pack 2008 SDK和微软SDK 9。我所做的就是卸载微软HPC Pack 2008 SDK和微软SDK 9,然后安装微软MPI v10.1.2和它的SDK。
你可以找到它 给你