I'm using the following code segment to initialize the mpi library for multiple threads. However I always get the following output saying that This MPI implementation does not support MPI_THREAD_MULTIPLE.
MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &provided);
if(provided != MPI_THREAD_MULTIPLE)
{
fprintf(stderr, "This MPI implementation does not support MPI_THREAD_MULTIPLE.\n"
}
On doing
mpiexec --version and ompi_info
I get this output: mpiexec (OpenRTE) 1.4.3 and Open MPI: 1.4.3
I compile using mpicc mpi_hello.c, where the c file contains the above code section. Any ideas why my mpi library does not support multiple threads? I would like to send and receive mpi messages from different threads, rather than processes.
Thanks