【发布时间】:2020-01-24 17:16:25
【问题描述】:
我创建了一个简单的 Hello World 程序来测试 Microsoft 所描述的 MPI 代码是:
#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 安装的一部分。由于我的计算机运行的是 Windows 10,因此我无法安装 Microsoft HPC。有没有办法让 mpi 程序在具有多个线程的桌面上运行?
【问题讨论】:
标签: windows visual-studio mpi desktop