I want to send a vector of string in MPI,but I don't know how should I use the MPI_Send and MPI_receiev. for example if I want to send a vector of long
I will use this code:
vector<double> local_data(n);
MPI_Send(&local_data[0], n, MPI_DOUBLE, 0, 0, MPI_COMM_WORLD);
but if I want to send a vector of string like this
vector<std::string> local_data(n);
I don't know what should I use as the size of buffer
and the type of variable
in MPI_send,
or MPI_recive. is there any solution for that?