ImageMagick and openMPI
Posted: 2011-07-22T13:08:25-07:00
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:
And i send it as:
the other nodes should receive it as:
But i get a Segmentation Fault:
Signal code: Address not mapped (1)
can anyone be of any help? i am almost frustrated !
Thanks.
Code: Select all
Image testImage;
// read in the file
testImage.read("image.png");
Code: Select all
MPI_Send( &testImage, sizeof(Image), MPI_BYTE, i , 100, MPI_COMM_WORLD);
Code: Select all
Image subimage_toModify;
MPI_Recv( &subimage_toModify, sizeof(Image), MPI_BYTE, 0, 100, MPI_COMM_WORLD, &status);
Signal code: Address not mapped (1)
can anyone be of any help? i am almost frustrated !
Thanks.