Changeset 1539 for XIOS/dev/branch_openmp/extern/src_ep_dev/ep_init.cpp
- Timestamp:
- 06/12/18 11:54:13 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/src_ep_dev/ep_init.cpp
r1533 r1539 2 2 #include <mpi.h> 3 3 #include "ep_declaration.hpp" 4 #include "ep_mpi.hpp" 4 5 6 extern MPI_Group MPI_GROUP_WORLD; 5 7 6 8 namespace ep_lib … … 13 15 Debug("MPI_Init_thread with EP/MPI\n"); 14 16 15 if(omp_get_thread_num() == 0)17 #pragma omp master 16 18 { 17 19 ::MPI_Init_thread(argc, argv, required, provided); 20 ::MPI_Comm_group(to_mpi_comm(MPI_COMM_WORLD->mpi_comm), &MPI_GROUP_WORLD); 18 21 } 19 22 } … … 23 26 Debug("MPI_Init with EP/MPI\n"); 24 27 25 if(omp_get_thread_num() == 0)28 #pragma omp master 26 29 { 27 30 ::MPI_Init(argc, argv); 28 31 } 29 }30 31 int EP_group_init()32 {33 34 32 } 35 33
Note: See TracChangeset
for help on using the changeset viewer.