Ignore:
Timestamp:
12/04/17 17:12:00 (6 years ago)
Author:
yushan
Message:

omp dev : unify MPI_Comm type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_bcast.cpp

    r1295 r1354  
    3131    } 
    3232 
    33 //    #pragma omp flush 
    3433    MPI_Barrier_local(comm); 
    35 //    #pragma omp flush 
    3634 
    3735    if(ep_rank_loc != local_root) 
     
    5048    { 
    5149      #pragma omp single nowait 
    52       ::MPI_Bcast(buffer, count, static_cast< ::MPI_Datatype>(datatype), root, static_cast< ::MPI_Comm>(comm.mpi_comm)); 
     50      ::MPI_Bcast(buffer, count, to_mpi_type(datatype), root, to_mpi_comm(comm.mpi_comm)); 
    5351      return 0; 
    5452    } 
     
    6260    int root_ep_rank_loc = comm.rank_map->at(root).first; 
    6361 
    64     // printf("root_mpi_rank = %d\n", root_mpi_rank);     
    6562 
    6663    if((ep_rank_loc==0 && mpi_rank != root_mpi_rank ) || ep_rank == root) 
Note: See TracChangeset for help on using the changeset viewer.