Page 1 of 1

ImageMagick and openMPI

Posted: 2011-07-22T13:08:25-07:00
by anooshr
I have a severe problem in my project. I need to send an image data to another node in the cluster. I read the images with ImageMagick, as like:

Code: Select all

Image testImage;

// read in the file
testImage.read("image.png");
And i send it as:

Code: Select all

MPI_Send( &testImage, sizeof(Image), MPI_BYTE, i , 100, MPI_COMM_WORLD);
the other nodes should receive it as:

Code: Select all

Image subimage_toModify;
MPI_Recv( &subimage_toModify, sizeof(Image), MPI_BYTE, 0, 100, MPI_COMM_WORLD, &status);
But i get a Segmentation Fault:

Signal code: Address not mapped (1)

can anyone be of any help? i am almost frustrated !

Thanks.