From fc5f692f71c01e4c7b76ac548aa676c3295ca1e1 Mon Sep 17 00:00:00 2001 From: Wenkai Du <43822138+wenkaidu@users.noreply.github.com> Date: Tue, 9 Nov 2021 13:52:03 -0800 Subject: [PATCH] Remove extra work element copy (#465) [ROCm/rccl commit: e05de8fd2613c085cc972f9e8b3e92e685e6a9ce] --- projects/rccl/src/enqueue.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/rccl/src/enqueue.cc b/projects/rccl/src/enqueue.cc index 6e47fb0666..f8c5130af5 100644 --- a/projects/rccl/src/enqueue.cc +++ b/projects/rccl/src/enqueue.cc @@ -186,10 +186,6 @@ static ncclResult_t setupLaunch(struct ncclQueueInfo* eqInfo, int usingCudaGraph // Except P2P or aggregation cases struct ncclWork* work = channel->workFifo+((channel->workFifoTail-channel->workCount)%NCCL_MAX_OPS); struct ncclWorkElem* elem = work->elems; - if (!usingCudaGraph) { - params->func = (void *)ncclKerns[0]; - memcpy(&comm->args, elem, sizeof(struct ncclWorkElem)); - } if (elem->funcIndex != FUNC_INDEX_P2P && eqInfo->elemList->count() == 1) elem->active = 0; }