I am trying to pass a dynamic 2d array with bcast to all ranks. I have the following code.
#include <stdlib.h> #include <mpi.h> int main(int argc, char **argv) { float ...
I followed Jonathan's code from here ( MPI_Bcast a dynamic 2d array ) to MPI_Bcast a dynamically allocated 2d array of structs. The struct is as follows:
typedef struct { ...