Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/collectives/all_reduce.cc')
-rw-r--r--src/collectives/all_reduce.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/collectives/all_reduce.cc b/src/collectives/all_reduce.cc
new file mode 100644
index 0000000..7796d5b
--- /dev/null
+++ b/src/collectives/all_reduce.cc
@@ -0,0 +1,17 @@
+/*************************************************************************
+ * Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved.
+ *
+ * See LICENSE.txt for license information
+ ************************************************************************/
+
+#include "enqueue.h"
+
+NCCL_API(ncclResult_t, ncclAllReduce, const void* sendbuff, void* recvbuff, size_t count,
+ ncclDataType_t datatype, ncclRedOp_t op, ncclComm* comm, cudaStream_t stream);
+ncclResult_t ncclAllReduce(const void* sendbuff, void* recvbuff, size_t count,
+ ncclDataType_t datatype, ncclRedOp_t op, ncclComm* comm, cudaStream_t stream) {
+ struct ncclInfo info = { ncclCollAllReduce, "AllReduce",
+ sendbuff, recvbuff, count, datatype, op, 0, comm, stream, /* Args */
+ ALLREDUCE_CHUNKSTEPS, ALLREDUCE_SLICESTEPS };
+ return ncclEnqueueCheck(&info);
+}