|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
VS2005下程序:
#include "mpi.h"
#include <stdio.h>
void main(int argc,char **argv)
{
int numtasks,rank;
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD,&numtasks);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
printf("Hello World from process %d of %d\n",rank,numtasks);
MPI_Finalize();
}
运行结果如下:
[0] Error creating mpiexec processs...2
[0] launchMpiexecProcess failed
Fatal error in MPI_Init: Other MPI error ,error stack:
MPIR_Init_thread<294>: Initialization failed
MPID_Init<82>........: channel initialization failed
MPID_Init<384>........: PMI_Get_id returned 1请按任意键继续。。。
各位高人指点一下,小弟谢了
|
|