Remove extra work element copy (#465)

Ta zmiana jest zawarta w:
Wenkai Du authored and GitHub committed 2021-11-09 13:52:03 -08:00
1 rodzic 1c7ef1b790
złożenie e05de8fd26
Plik 1 zmieniony
-4
-4
Wyświetl plik
@@ -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;
}