Files
rocm-systems/src/collectives/reduce_api.cc
T

21 lines
999 B
C++
Raw Normal View History

2018-09-24 16:06:59 -07:00
/*************************************************************************
2020-09-04 14:35:05 -07:00
* Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved.
2020-01-15 17:54:27 -07:00
* Modifications Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
2018-09-24 16:06:59 -07:00
*
* 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,
2019-07-05 15:43:00 -07:00
ncclDataType_t datatype, ncclRedOp_t op, int root, ncclComm_t comm, hipStream_t stream);
2018-09-24 16:06:59 -07:00
ncclResult_t ncclReduce(const void* sendbuff, void* recvbuff, size_t count,
2019-07-05 15:43:00 -07:00
ncclDataType_t datatype, ncclRedOp_t op, int root, ncclComm_t comm, hipStream_t stream) {
2020-09-04 14:35:05 -07:00
NVTX3_FUNC_RANGE_IN(nccl_domain);
struct ncclInfo info = { ncclFuncReduce, "Reduce",
2018-12-13 15:56:12 -08:00
sendbuff, recvbuff, count, datatype, op, root, comm, stream, /* Args */
REDUCE_CHUNKSTEPS, REDUCE_SLICESTEPS };
return ncclEnqueueCheck(&info);
2018-09-24 16:06:59 -07:00
}