[MPICH] About MPI_RECv under windows 2003 server.

Wei-keng Liao wkliao at ece.northwestern.edu
Wed Oct 4 11:54:42 CDT 2006


Send/recv buffer must be a pointer. Try replace x2 with &x2.
Also variable status should be of type MPI_Status and replace status in 
MPI_Recv() with &status.

Wei-keng


On Wed, 4 Oct 2006, Bruno Simioni wrote:

> Hi everybody.
>
> I am a trying to run that C code at Visual Studio 2005, under Windows 2003
> server.
>
> double  x2;
> int status;
>
> At myid = 1
>  MPI_Send(x2, 1, MPI_DOUBLE, 0, 1, MPI_COMM_WORLD);        // MPI_Send(x2
> em 1 -> 0.).
>
> At myid = 0
>  MPI_Recv(x2, 1, MPI_DOUBLE, 1, 1, MPI_COMM_WORLD, status); //
> MPI_Receive(x2 em 1 -> 0).
>
> Well, when I try to debug de process, an exit code = 13 is generated.
>
> What's wrong with code? I'm using the environment variables, and instances
> of visual studio debbuger to debbug the program. So, when I execute MPI_Recv
> under one of process, it crashes, with an error message about buffer. I
> didn't understand, so, i'm sending that.
>
> Help!
>
> thanks!
>
> -- 
> Bruno Simioni
> Bacharelado em Ciências da Computação
> Universidade Estadual Paulista - Unesp  - Rio Claro / São Paulo
> brunosimioni at gmail.com
> 14 - 9753-4380
>


More information about the mpich-discuss mailing list