Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit fd3edbf8 authored by frey_m's avatar frey_m
Browse files

IPPL didn't initialized MPI with threads

parent 2644446a
No related branches found
No related tags found
1 merge request!32Master
......@@ -35,6 +35,10 @@
// include mpi header file
#include <mpi.h>
#ifdef _OPENMP
#include <omp.h>
#endif
#include <cstring>
#include <cstdlib>
#include <unistd.h>
......@@ -98,7 +102,17 @@ CommMPI::CommMPI(int& argc , char**& argv, int procs, bool mpiinit, MPI_Comm mpi
// initialize mpi
if (weInitialized)
#ifdef _OPENMP
int provided = 0;
MPI_Init_Thread(&argc, &argv, MPI_THREAD_FUNNELED, &provided);
INFOMSG("Ippl will be initialized with " <<
omp_get_max_threads() << " OMP threads\n");
if ( provided != MPI_THREAD_FUNNELED )
ERRORMSG("CommMPI: Didn't get requested MPI-OpenMP setting.\n");
#else
MPI_Init(&argc, &argv);
#endif
//else
// INFOMSG("NOT initializing MPI = " << endl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment