text: /*************************************************************************
   * Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved.
   * Modifications Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
   *
   * See LICENSE.txt for license information
   ************************************************************************/
  
  #include "enqueue.h"
  #include "collectives.h"
  
  NCCL_API(ncclResult_t, ncclReduce, const void* sendbuff, void* recvbuff, size_t count,
      ncclDataType_t datatype, ncclRedOp_t op, int root, ncclComm_t comm, hipStream_t stream);
  ncclResult_t ncclReduce(const void* sendbuff, void* recvbuff, size_t count,
      ncclDataType_t datatype, ncclRedOp_t op, int root, ncclComm_t comm, hipStream_t stream) {
    NVTX3_FUNC_RANGE_IN(nccl_domain);
    struct ncclInfo info = { ncclFuncReduce, "Reduce",
      sendbuff, recvbuff, count, datatype, op, root, comm, stream, /* Args */
      REDUCE_CHUNKSTEPS, REDUCE_SLICESTEPS };
    return ncclEnqueueCheck(&info);
  }
  