Changeset 1527 for XIOS/dev/branch_openmp/extern/ep_dev/ep_bcast.cpp
- Timestamp:
- 06/08/18 15:59:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/ep_dev/ep_bcast.cpp
r1503 r1527 45 45 { 46 46 47 if(!comm->is_ep) 48 { 49 #pragma omp single nowait 50 ::MPI_Bcast(buffer, count, to_mpi_type(datatype), root, to_mpi_comm(comm->mpi_comm)); 51 return 0; 52 } 47 if(!comm->is_ep) return ::MPI_Bcast(buffer, count, to_mpi_type(datatype), root, to_mpi_comm(comm->mpi_comm)); 48 if(comm->is_intercomm) return MPI_Bcast_intercomm(buffer, count, datatype, root, comm); 53 49 54 50 … … 59 55 int root_mpi_rank = comm->ep_rank_map->at(root).second; 60 56 int root_ep_rank_loc = comm->ep_rank_map->at(root).first; 57 58 //printf("ep_rank = %d, root_mpi_rank = %d, root_ep_rank_loc = %d\n", ep_rank, root_mpi_rank, root_ep_rank_loc); 61 59 62 60 … … 69 67 else MPI_Bcast_local(buffer, count, datatype, 0, comm); 70 68 71 return 0;72 69 } 73 70 74 71 75 72 int MPI_Bcast_intercomm(void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm) 73 { 74 printf("MPI_Bcast_intercomm not yet implemented\n"); 75 MPI_Abort(comm, 0); 76 } 76 77 77 78
Note: See TracChangeset
for help on using the changeset viewer.