Group Calls#
Group primitives define the behavior of the current thread to avoid blocking. They can therefore be used from multiple threads independently.
Related links: Group Calls.
ncclGroupStart#
-
ncclResult_t ncclGroupStart()#
Start a group call.
All subsequent calls to NCCL until
ncclGroupEnd()will not block due to inter-CPU synchronization.
ncclGroupEnd#
-
ncclResult_t ncclGroupEnd()#
End a group call.
Returns when all operations since
ncclGroupStart()have been processed. This means the communication primitives have been enqueued to the provided streams, but are not necessarily complete.With nonblocking communicators, this function may return
ncclInProgressbefore processing is complete. In this case pollncclCommGetAsyncError()on each communicator in the group until its asyncError output is no longerncclInProgress. All communicators must reportncclSuccessbefore issuing further NCCL calls or using the affected CUDA streams. If a query fails or a communicator reports a terminal error, stop polling and follow the error-handling guidance inncclCommGetAsyncError().With blocking communicators, a group containing
ncclCommInitRank()calls waits for all communicators to be initialized beforencclGroupEnd()returns.
ncclGroupSimulateEnd#
-
ncclResult_t ncclGroupSimulateEnd(ncclSimInfo_t *simInfo)#
Simulate a
ncclGroupEnd()call and return NCCL’s simulation info in a structure passed as an argument.