LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2004-04-02 02:12:14


* Llfrg_at_[hidden] wrote on Wed, Mar 31, 2004 at 09:18:00PM CEST:
>
> if(!(request = (MPI_Request *)malloc((size-1)*sizeof(MPI_Request)))){
> printf("ERROR");
> exit(1);
> }

Just stabbing in the dark (lacking more source code): You forgot to
#include <stdlib.h>, and your cast is hiding the bug (and you haven't
enabled enough compiler warnings). Alternatively, size is less or equal
to 1. If neither is the case, I suggest you just start showing a
minimal complete example code where this problem shows up.

Regards,
Ralf