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.
parent
0bbbaa8a
Please register or sign in to comment