首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 云计算 >

mpich 简略的helloworld程序出错

2012-12-31 
mpich 简单的helloworld程序出错我按装的mpich 简单的helloworld程序出错当程序运行到 MPI_Init(&argc, &a

mpich 简单的helloworld程序出错
我按装的mpich 
简单的helloworld程序出错
当程序运行到 MPI_Init(&argc, &argv); 时 
出错  
Error 10038, process 0:
   ControlLoopThread: WSAEventSelect failed
   在一个非套接字上尝试了一个操作。

不明白为啥?

程序如下
#include "mpi.h"
#include <stdio.h>
#include <math.h>
void main(int argc, char *argv[ ])
{   
    int done = 0, n, myid, numprocs, i;
    double PI25DT =3.141592653589793238462643;
    double mypi, pi, h, sum, x;
    double startwtime, endwtime;
    int  namelen;


MPI_Init(&argc, &argv);
printf("Hello World!\n");
MPI_Finalize();
}
[解决办法]
你这是在XP下的MPI啊。

热点排行