ImageMagick and openMPI

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
anooshr
Posts: 1
Joined: 2011-07-22T12:53:30-07:00
Authentication code: 8675308

ImageMagick and openMPI

Post 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.
Post Reply