昇腾社区首页
中文
注册
开发者
下载

HcclChannelDesc

功能说明

定义通信通道参数。

定义原型

typedef struct {
    CommAbiHeader header;
    uint32_t remoteRank;              /* 远端rankId */
    CommProtocol channelProtocol;     /* 通信协议 */
    EndpointDesc localEndpoint;       /* 本地网络设备端侧描述,暂不支持配置 */
    EndpointDesc remoteEndpoint;      /* 远端网络设备端侧描述,暂不支持配置 */
    uint32_t notifyNum;               /* channel上使用的同步信号数量,范围为0~64,默认为0 */
    void *memHandles;                 /* 注册到通信域的待交换内存句柄,暂不支持配置 */
    uint32_t memHandleNum;            /* 注册到通信域的待交换内存句柄数量,暂不支持配置 */
    union {
        uint8_t raws[128];            /* 通用缓存 */
        struct {
            uint32_t queueNum;        /* QP数量,当前仅支持一个QP */
            uint32_t retryCnt;        /* 最大重传次数,范围为0~7,默认为7 */
            uint32_t retryInterval;   /* 重传间隔,范围为5~24,默认为20(对应时间4.096*2^20us) */
            uint8_t tc;               /* 流量类别(QoS),范围为0~255,默认为132 */
            uint8_t sl;               /* 服务等级(QoS),范围为0~7,默认为4 */
        } roceAttr;
    };
} HcclChannelDesc;