Changeset 1482 for XIOS/dev/branch_openmp/extern/src_ep_dev/ep_reduce.cpp
- Timestamp:
- 04/13/18 16:25:46 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/src_ep_dev/ep_reduce.cpp
r1461 r1482 130 130 reduce_max<uint64_t>(static_cast<uint64_t*>(comm.my_buffer->void_buffer[i]), static_cast<uint64_t*>(recvbuf), count); 131 131 } 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 } 132 139 133 140 else printf("datatype Error\n"); … … 185 192 reduce_min<uint64_t>(static_cast<uint64_t*>(comm.my_buffer->void_buffer[i]), static_cast<uint64_t*>(recvbuf), count); 186 193 } 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 } 187 201 188 202 else printf("datatype Error\n"); … … 240 254 for(int i=1; i<num_ep; i++) 241 255 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); 242 263 } 243 264
Note: See TracChangeset
for help on using the changeset viewer.