HcommChannelDescInit

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

x

Atlas A2 training product/Atlas A2 inference product

x

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

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

Function

Initializes the communication channel description list.

Prototype

1
HcommResult HcommChannelDescInit(HcommChannelDesc *channelDesc, uint32_t descNum)

Parameters

Parameter

Input/Output

Description

channelDesc

Input

Communication channel description list. The list length is descNum.

For details, see HcommChannelDesc.

descNum

Input

Number of communication channel descriptions.

Returns

HcommResult: 0 on success; else, failure.

Restrictions

The HcommChannelDesc structure must be initialized by this API call.

Example

The following uses the communication channel description list with two descriptions as an example:

1
2
3
uint32_t channelNum = 2;
std::vector<HcommChannelDesc> channelDesc(channelNum);
HcommChannelDescInit(channelDesc.data(), channelNum);