LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Llfrg_at_[hidden]
Date: 2004-03-31 14:18:00


I did

   if(!(request = (MPI_Request *)malloc((size-1)*sizeof(MPI_Request)))){
      printf("ERROR");
      exit(1);
   }

And did not get any "ERROR" message. Also there is no reference to request after malloc and before the MPI_Isend call. I did printf the value of j just before MPI_Isend and it is really zero. The strange thing is when j is 1, 2, 3, ... MPI_Isend works. Also if I declare a vector request of a large enough size it works, but of course it would be much better if I could malloc the appropriate space.

Thanks,
Leonardo.