Ray Collective API#
For usage, see Ray Collective Communication Lib.
Collective groups#
Initialize a collective group inside an actor process. |
|
Declare a list of actors as a collective group. |
|
Destroy a collective group given its group name. |
|
Check if the group is initialized in this process by the group name. |
|
Return the rank of this process in the given group. |
|
Return the size of the collective group with the given name. |
|
Check if the group is initialized and return the group handle. |
|
Use this class to manage the collective groups we created so far. |
Collective communication#
Collective allreduce the tensor across the group. |
|
Collective allreduce a list of tensors across the group. |
|
Barrier all processes in the collective group. |
|
Reduce the tensor across the group to the destination rank. |
|
Reduce the tensor across the group to the destination rank and destination tensor. |
|
Broadcast the tensor from a source process to all others. |
|
Broadcast the tensor from a source GPU to all other GPUs. |
|
Allgather tensors from each process of the group into a list. |
|
Allgather tensors from each gpus of the group into lists. |
|
Reducescatter a list of tensors across the group. |
|
Reducescatter a list of tensors across all GPUs. |
Point-to-point communication#
Send a tensor to a remote process synchronously. |
|
Send a tensor to a remote GPU synchronously. |
|
Receive a tensor from a remote process synchronously. |
|
Receive a tensor from a remote GPU synchronously. |
Backends#
Check if a collective backend is available. |
|
|
Register a custom collective backend with Ray. |
Utilities#
Returns the IP address and a free port on this node. |
|
Synchronize the current process to a give device. |