Hi
You should remove the "&" for the first parameters of your MPI_Send
and MPI_Recv:
MPI_Send(text, strlen(text) + 1, MPI_CHAR, 1, 0, MPI_COMM_WORLD);
MPI_Recv(buffer, 128, MPI_CHAR, MPI_ANY_SOURCE, MPI_ANY_TAG,
MPI_COMM_WORLD, &status);
In C/C++ the name of an array is a pointer to the start of
Hi all Open MPI users,
I write a simple MPI program to send a text message to another process. The
code is below.
(test.c)
#include "mpi.h"
#include
#include
#include
int main(int argc, char* argv[]) {
int dest, noProcesses, processId;
MPI_Status status;
char* buffer;