Есть ли способ, которым я могу создать пользовательский MPI_Datatype, чтобы я мог отправить всю структуру, а не по одному с MPI_Bcast?Например, этот вид структуры:
typedef struct{
unsigned char none;
}pixelbw;
typedef struct{
unsigned char red, green, blue;
}pixelc;
typedef struct {
char *type;
int height;
int width;
short colors;
pixelbw **bw;
pixelc **c;
}image;