|
API |
Description |
|---|---|
|
Adds the input data of all nodes in the communicator (or performs other reduction operations) and sends the result to the output buffer of all nodes. The reduction operation type is specified by the op parameter. |
|
|
Broadcasts the data of the root rank in the communicator to other ranks. |
|
|
Re-sorts the inputs of all ranks in the communicator by rank ID, combines the inputs, and sends the results to the outputs of all ranks. |
|
|
Re-sorts the inputs of all ranks in the communicator by rank ID, combines the inputs, and sends the results to the outputs of all ranks. Different from the AllGather operator, the AllGatherV operator allows different data sizes to be configured for the input of different ranks in the communicator. |
|
|
Functions as the operation API of the ReduceScatter operator to evenly divide the input data of all ranks in a communicator into rank size parts and then perform reduction (sum, prod, max, and min) on 1/rank size part of data of each rank. Finally, the result is distributed to the output buffer of each rank based on the rank ID. |
|
|
Functions as the operation API of the ReduceScatterV operator, which is similar to the ReduceScatter operation. The difference is that the ReduceScatterV operation supports the configuration of different data sizes for different ranks in a communicator. (The data size can be configured for different IDs in a rank, but the data size of the same ID in different ranks must be the same.) After the reduction operation (sum, prod, max, and min) is performed on data with the same ID in each rank, the result is distributed to the output buffer of each rank based on the ID. |
|
|
Performs the sum operation (or other reduction operations) on the data of all ranks and sends the result to the specified position on the root rank. |
|
|
Sends the same-sized data to all ranks in the communicator and receives the same-sized data from all ranks. |
|
|
Sends data (whose size can be customized) to all ranks in the communicator and receives data from all ranks. |
|
|
Sends data (whose size can be customized) to all ranks in the communicator and receives data from all ranks. Compared with AlltoAllV, AlltoAllVC uses the input parameter sendCountMatrix to pass the RX and TX parameters of all ranks. |
|
|
Scatters data of the root rank to other ranks. |
|
|
Sends the data at the specified location on the current rank to the specified location on the destination rank. |
|
|
Receives data from the source rank to the specified location on the current rank. |
|
|
Completes sending and receiving tasks in batches on the current rank. The sending and receiving tasks of the current rank are asynchronous and do not block each other. |
|
API |
Description |
|---|---|
|
Initializes HCCL based on the rank table and creates an HCCL communicator. |
|
|
Initializes HCCL based on the rank table and creates an HCCL communicator with specific configurations. |
|
|
This API needs to be called only on the root rank before the HCCL initialization API HcclCommInitRootInfo or HcclCommInitRootInfoConfig is called, to generate the rank identification information (HcclRootInfo) of the root rank. |
|
|
Initializes the HCCL based on rootInfo to create an HCCL communicator. |
|
|
Initializes the HCCL based on rootInfo and creates an HCCL communicator with specific configurations. |
|
|
Initializes the communicator configuration option and sets the configurable parameters to the default values. |
|
|
In the single-server communication scenario, a process is used to create a communicator for multiple devices (one device corresponds to one thread). During the initialization of the communicator, devices[0] functions as the root rank to automatically collect cluster information. |
|
|
Destroys a specified HCCL communicator. |
|
|
Queries the number of ranks in a specified communicator. |
|
|
Obtains the rank ID of a device in a communicator. |
|
|
Blocks the streams of all ranks in the specified communicator. |
|
|
Sets collective communication. Currently, only the support status of deterministic computing can be configured. |
|
|
Obtains the configuration related to collective communication. |
|
|
Obtains the name of the communicator where the specified communication operation is performed. |
|
|
Checks whether the current software version supports the initialization configuration of a communicator. |
|
|
Suspends a communicator when an uncorrectable error (UCE) occurs in the on-chip memory (ACL_ERROR_RT_DEVICE_MTE_ERROR is returned by an ACL API). Note: This API is reserved and may be changed in later versions. It is not supported for developers. |
|
|
Resumes the status of a communicator. Note: This API is reserved and may be changed in later versions. It is not supported for developers. |
|
|
Splits an existing global communicator into sub-communicators with specific configurations. |
|
|
Configures the communication NIC in the communicator in the cluster scenario. Communication can be switched between a device NIC and the standby NIC on the same NPU. The standby NIC is another die NIC on the same NPU. |
|
|
If the cluster information shows that the communication link of the device network port is unstable or network congestion occurs, "error cqe" is printed in the device log. This error is called "RDMA ERROR CQE". In the current version, this API can only be used to check whether the "RDMA ERROR CQE" error exists in the communicator. |
|
|
Parses error codes of the HcclResult type. |
|
|
Notifies HCCL of the reserved virtual memory address after virtual memory is successfully allocated using the aclrtReserveMemAddress API. After this API is called, the virtual memory is accessible to all communicators within the current process. Note: The zero-copy function API can be called only by the backend code of the Ascend Extension for PyTorch plugin. It is for trial use only and cannot be used in commercial products. |
|
|
Notifies an HCCL communicator to invalidate the reserved virtual memory. Note: The zero-copy function API can be called only by the backend code of the Ascend Extension for PyTorch plugin. It is for trial use only and cannot be used in commercial products. |
|
|
Activates the reserved virtual memory. Zero copy can be enabled only when the activated memory is used as the input and output of a communication operator. Note: The zero-copy function API can be called only by the backend code of the Ascend Extension for PyTorch plugin. It is for trial use only and cannot be used in commercial products. |
|
|
Deactivates a virtual memory. If the address of a deactivated virtual memory is used for collective communication, the zero-copy function will not be enabled. Note: The zero-copy function API can be called only by the backend code of the Ascend Extension for PyTorch plugin. It is for trial use only and cannot be used in commercial products. |
|
API |
Description |
|---|---|
|
Creates a user-defined group. |
|
|
Destroys a user-defined group. |
|
|
Obtains the number of ranks (that is, the number of devices) in a group. |
|
|
Obtains the number of local ranks on the server where the devices in the group are located. |
|
|
Obtains the rank ID of a device in a group. |
|
|
Obtains the local rank ID of a device in a group. |
|
|
Obtains the world rank ID based on the rank ID of the process in the group. |
|
|
Obtains the group rank ID of the process in the group using the world rank ID. |
|
|
Sets a gradient segmentation strategy in a collective communication group based on the gradient index ID to implement AllReduce fusion and optimize the collective communication performance. |
|
|
Sets a gradient segmentation strategy in a collective communication group based on the proportion of gradient data to implement AllReduce fusion and optimize the collective communication performance. |