Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use MPI_Init_thread if OpenMP is enabled
If MPI is used in a multi-threaded environment the MPI implementation has to be aware of the calling context of MPI methods. Therefore, initialize the MPI environment with MPI_Init_thread requesting the desired thread support level. So far ls1 makes MPI calls only from the main thread, i.e., uses MPI_THREAD_FUNNELED. For details see the MPI standard. Signed-off-by: Christoph Niethammer <[email protected]>
- Loading branch information