HcclChannelDescInit
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
For
Function
Initializes the communication channel description list.
Prototype
1 | HcclResult HcclChannelDescInit(HcclChannelDesc *channelDesc, uint32_t descNum) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Input |
Communication channel description list. The list length is descNum. For the definition of the HcclChannelDesc type, see HcclChannelDesc. |
descNum |
Input |
Number of communication channel descriptions. |
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Restrictions
The HcclChannelDesc structure must call this API for initialization.
Example
The following uses the communication channel description list with two descriptions as an example:
1 2 3 | uint32_t channelNum = 2; std::vector<HcclChannelDesc> channelDesc(channelNum); HcclChannelDescInit(channelDesc.data(), channelNum); |