Hmm, I don't see where I got the parameters wrong:
From the link:
Code:
MPI_Send(void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm)
From my code:
Code:
MPI_Send(str, 128, MPI_CHAR, 1, my_rank, MPI_COMM_WORLD);
And for receive:
Code:
MPI_Recv(void* buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status)
From my code:
Code:
MPI_Recv(str, 128, MPI_CHAR, 0, my_rank, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
BTW, I'm using my_rank as the tag value.
I tried using the parameters MPI_ANY_TAG and MPI_ANY_SOURCE and I believe I got the same error. However, I will try it again right now.
Edit - Yup, I tried using MPI_ANY_TAG and MPI_ANY_SOURCE and I still got the same exact error.