Creates a new communicator (multi thread/process version).
rank must be between 0 and nranks-1 and unique within a communicator clique. Each rank is associated to a CUDA device, which has to be set before calling ncclCommInitRank.
ncclCommInitRank implicitly synchronizes with other ranks, hence it must be called by different threads/processes or used within ncclGroupStart/ncclGroupEnd.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ncclComm) | :: | comm |
Communicator |
|||
integer(kind=c_int), | value | :: | nranks |
Number of ranks in communicator |
||
type(ncclUniqueId), | value | :: | uniqueId |
Unique ID |
||
integer(kind=c_int), | value | :: | rank |
Calling rank |
Completion status