Ignore:
Timestamp:
04/13/18 16:25:46 (6 years ago)
Author:
yushan
Message:

Branch EP merged with Dev_cmip6 @r1481

Location:
XIOS/dev/branch_openmp/extern/src_ep_dev
Files:
3 edited

Legend:

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

    r1460 r1482  
    2525::MPI_Datatype MPI_UNSIGNED_CHAR_STD = MPI_UNSIGNED_CHAR; 
    2626::MPI_Datatype MPI_UINT64_T_STD = MPI_UINT64_T; 
     27::MPI_Datatype MPI_LONG_LONG_INT_STD = MPI_LONG_LONG_INT; 
    2728 
    2829#undef MPI_INT 
     
    3435#undef MPI_UNSIGNED_CHAR 
    3536#undef MPI_UINT64_T 
     37#undef MPI_LONG_LONG_INT 
    3638 
    3739 
     
    5759extern ::MPI_Datatype MPI_UNSIGNED_CHAR_STD; 
    5860extern ::MPI_Datatype MPI_UINT64_T_STD; 
     61extern ::MPI_Datatype MPI_LONG_LONG_INT_STD; 
    5962 
    6063 
     
    7982ep_lib::MPI_Datatype MPI_UNSIGNED_CHAR = &MPI_UNSIGNED_CHAR_STD; 
    8083ep_lib::MPI_Datatype MPI_UINT64_T = &MPI_UINT64_T_STD; 
     84ep_lib::MPI_Datatype MPI_LONG_LONG_INT = &MPI_LONG_LONG_INT_STD; 
    8185 
    8286 
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_declaration.hpp

    r1460 r1482  
    1010#undef MPI_UNSIGNED_CHAR 
    1111#undef MPI_UINT64_T 
     12#undef MPI_LONG_LONG_INT 
    1213 
    1314#undef MPI_SUM 
     
    3132extern ep_lib::MPI_Datatype MPI_UNSIGNED_CHAR; 
    3233extern ep_lib::MPI_Datatype MPI_UINT64_T; 
     34extern ep_lib::MPI_Datatype MPI_LONG_LONG_INT; 
    3335 
    3436extern ep_lib::MPI_Op MPI_SUM; 
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_reduce.cpp

    r1461 r1482  
    130130            reduce_max<uint64_t>(static_cast<uint64_t*>(comm.my_buffer->void_buffer[i]), static_cast<uint64_t*>(recvbuf), count); 
    131131        } 
     132         
     133        else if(datatype == MPI_LONG_LONG_INT) 
     134        { 
     135          assert(datasize == sizeof(long long)); 
     136          for(int i=1; i<num_ep; i++) 
     137            reduce_max<long long>(static_cast<long long*>(comm.my_buffer->void_buffer[i]), static_cast<long long*>(recvbuf), count); 
     138        } 
    132139 
    133140        else printf("datatype Error\n"); 
     
    185192            reduce_min<uint64_t>(static_cast<uint64_t*>(comm.my_buffer->void_buffer[i]), static_cast<uint64_t*>(recvbuf), count); 
    186193        } 
     194         
     195        else if(datatype == MPI_LONG_LONG_INT) 
     196        { 
     197          assert(datasize == sizeof(long long)); 
     198          for(int i=1; i<num_ep; i++) 
     199            reduce_min<long long>(static_cast<long long*>(comm.my_buffer->void_buffer[i]), static_cast<long long*>(recvbuf), count); 
     200        } 
    187201 
    188202        else printf("datatype Error\n"); 
     
    240254          for(int i=1; i<num_ep; i++) 
    241255            reduce_sum<uint64_t>(static_cast<uint64_t*>(comm.my_buffer->void_buffer[i]), static_cast<uint64_t*>(recvbuf), count); 
     256        } 
     257         
     258        else if(datatype ==MPI_LONG_LONG_INT) 
     259        { 
     260          assert(datasize == sizeof(long long)); 
     261          for(int i=1; i<num_ep; i++) 
     262            reduce_sum<long long>(static_cast<long long*>(comm.my_buffer->void_buffer[i]), static_cast<long long*>(recvbuf), count); 
    242263        } 
    243264 
Note: See TracChangeset for help on using the changeset viewer.