我的项目中存在严重问题。我需要将图像数据发送到群集中的另一个节点。我读与ImageMagick的图像,像:在openMPI中发送ImageMagick对象,C++
Image testImage;
// read in the file
testImage.read("image.png");
我送它作为:
MPI_Send(&testImage, sizeof(Image), MPI_BYTE, i , 100, MPI_COMM_WORLD);
其他节点应该接受它:
Image subimage_toModify;
MPI_Recv(&subimage_toModify, sizeof(Image), MPI_BYTE, 0, 100, MPI_COMM_WORLD, &status);
但我得到一个分割故障:
Signal code: Address not mapped (1)
c任何人都有帮助?我几乎感到沮丧!
subimage_toModify –
@Nikola,我不明白你的答案! – camelian77
尝试仅使用subimage_to再次修改地址。 –