我创建了一个简单的Hello World程序来测试MPI,如Microsoft代码所述:
#include <mpi.h>
#include <stdio.h>
int main(int argc, char** argv) {
printf("Hello");
int node;
// Initialize the MPI environment
MPI_Init(&argc, &argv);
// Get the rank of the process
MPI_Comm_rank(MPI_COMM_WORLD, &node);
// Print off a hello world message
printf("Hello world from node %d\n",node);
// Finalize the MPI environment.
MPI_Finalize();
}程序编译时没有错误:

但是为了让程序运行,我需要smpd管理器和mpiexec,这不是ms-mpi安装的一部分。由于我的电脑运行的是windows10,所以我无法安装Microsoft HPC。有没有办法让mpi程序在多个线程的桌面上运行?
发布于 2020-01-24 17:16:25
它不是在台式机上运行MPI程序所需的微软HPC包,而是Microsoft HPC Pack SDK。细微但重要的区别。
https://stackoverflow.com/questions/59892904
复制相似问题