da佬,你好!我可以运行mpi,但是输出显示一直running,没有结果,如下图
#include <iostream>
#include "mpi.h"
#include <stdint.h>
using namespace std;
int main(int argc,char* argv[]){
MPI_Init(&argc,&argv);
cout<<"hello!\n"<<endl;
printf("hello world!\n");
MPI_Finalize();
return 0;
}
我设置的是mpiexec -n 1 文件名
可是hello和hello world输不出来