- if (count * (MAX(extent, true_extent)) < SHMEM_COLL_BLOCK_SIZE) {
- mpi_errno = MPIR_Reduce_shmem_MV2(in_buf, out_buf, count,
- datatype, op,
- 0, shmem_comm);
- }
- else {
- mpi_errno = MPIR_Reduce_intra_knomial_wrapper_MV2(in_buf, out_buf, count,
- datatype, op,
- 0, shmem_comm);
- }
-
+ if (count * (std::max(extent, true_extent)) < SHMEM_COLL_BLOCK_SIZE) {
+ mpi_errno = MPIR_Reduce_shmem_MV2(in_buf, out_buf, count, datatype, op, 0, shmem_comm);
+ } else {
+ mpi_errno = MPIR_Reduce_intra_knomial_wrapper_MV2(in_buf, out_buf, count, datatype, op, 0, shmem_comm);
+ }
+