[Insight-users] MPI_Ssend image buffer

Kevin H. Hobbs hobbsk at ohiou.edu
Thu Jul 17 10:25:57 EDT 2008


I'm an idiot ignore me.

I should do more thinking and less cutting and pasting.

[kevin at murron ITK_MPI]$ diff read_send_write.cxx.segfaults read_send_write.cxx
35c35
<     MPI_Ssend(&index, sizeof(unsigned long) * 3,
---
>     MPI_Ssend(index, sizeof(unsigned long) * 3,
42c42
<     MPI_Ssend(&size, sizeof(unsigned long) * 3, 
---
>     MPI_Ssend(size, sizeof(unsigned long) * 3, 
47,48c47
<     MPI_Ssend( &send_buffer, 
<       sizeof(ImageType::PixelType) * 
---
>     MPI_Ssend( send_buffer, 
50c49
<       MPI_BYTE, 0, 2, MPI_COMM_WORLD );
---
>       MPI_BYTE, 1, 2, MPI_COMM_WORLD );
58c57
<     MPI_Recv(&recv_index, sizeof(unsigned long) * 3, 
---
>     MPI_Recv(recv_index, sizeof(unsigned long) * 3, 
66c65
<     MPI_Recv(&recv_size, sizeof(unsigned long) * 3, MPI_BYTE, 
---
>     MPI_Recv(recv_size, sizeof(unsigned long) * 3, MPI_BYTE, 
85,86c84
<     MPI_Recv(&recv_buffer, 
<       sizeof(ImageType::PixelType) * 
---
>     MPI_Recv(recv_buffer, 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080717/bd9f5c06/attachment.pgp>


More information about the Insight-users mailing list