HcclAllGatherV

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

☓

Atlas inference products

√

Atlas training products

☓

For Atlas A2 training products/Atlas A2 inference products, only the Atlas 800T A2 training server, Atlas 900 A2 PoD cluster basic unit, and Atlas 200T A2 Box16 heterogeneous subrack are supported.

For the Atlas inference products, only the Atlas 300I Duo inference card is supported.

Description

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.

For the AllGatherV operation, each rank receives a set of data that is resorted by rank ID, that is, AllGatherV outputs of all ranks are the same.

Prototype

1
HcclResult HcclAllGatherV(void *sendBuf, uint64_t sendCount, void *recvBuf, const void *recvCounts, const void *recvDispls, HcclDataType dataType, HcclComm comm, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

sendBuf

Input

Address of the buffer to send source data.

sendCount

Input

Size of sendBuf data involved in the AllGatherV operation.

recvBuf

Output

Address of the buffer to receive collective communication result.

recvCounts

Output

Size of data in recvBuf of each rank involved in the AllGatherV operation, which is an array of the uint64 type.

The ith element of this array indicates the amount of data to be received from rank i. The data size must be the same as the value of sendCount of rank i.

recvDispls

Output

Offset of data of each rank in recvBuf involved in the AllGatherV operation (unit: dataType), which is an array of the uint64 type.

The ith element of this array indicates the start offset of the data received from rank i in recvBuf.

dataType

Input

Data type of the AllGatherV operation, which is of the HcclDataType type.

Atlas A3 training products/Atlas A3 inference products: The supported data types are int8, uint8, int16, uint16, int32, uint32, int64, uint64, float16, float32, float64, and bfp16.

Atlas A2 training products/Atlas A2 inference products: The supported data types are int8, uint8, int16, uint16, int32, uint32, int64, uint64, float16, float32, float64, and bfp16.

Atlas 300I Duo inference card: The supported data types are int8, uint8, int16, uint16, int32, uint32, int64, uint64, float16, float32, and float64.

comm

Input

Communicator where the operation is performed.

stream

Input

Stream of the rank.

Returns

HcclResult: HCCL_SUCCESS on success; else, failure.

Constraints