HcommChannelDescInit
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
x |
|
x |
|
x |
|
x |
|
√ |
For
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); |