Afficher un message
Vieux 21/10/2007, 20h45   #1
dopiotr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to send dynamic vector?

Hello Group,

int Msg[size];
MPI_Send(Msg, size, MPI_INT, DEST, TAG, MPI_COMM_WORLD);
this is working fine.

But how to send Msg declared like this:
int *Msg=(int*)malloc(sizeof(int)*size);

It gives me
p4_error: interrupt SIGSEGV: 11
not_send: could not write to fd=4, errno = 32

Thanks!

  Réponse avec citation
 
Page generated in 0,03950 seconds with 9 queries