Use MPI_Init_thread instead of MPI_Init
This allows the user to set the required thread level. Initializing MPI with threading support is needed when MPI functions are called from multiple threads. All common MPI libraries seem to provide this feature.
Loading
Please sign in to comment