Closed
Runtime 流队列查询接口注释与声明不符 #1219
KaranocaVeAdd on  Oct 22Closed at  Oct 22
KaranocaVe
KaranocaVe
Oct 22 Create

Runtime 流队列查询接口注释与声明不符

公共头文件 pkg_inc/runtime/rt_external_stream.h 中,rtStreamGetSqid 的 brief 错写为创建 stream;rtStreamGetCqid 的输出参数说明也与声明顺序不符。声明顺序为 cqId、logicCqId,注释却把 SQ/CQ 名称和返回值说明错配。
预期是 brief 描述 SQ ID 查询,并按声明说明 CQ ID 与逻辑 CQ ID;当前文字会使调用者误解接口用途和输出值。实现将 GetSqId() 写入 SQ 输出,将 GetCqId() 和 GetLogicalCqId() 分别写入 cqId、logicCqId。修复只更正注释,不改函数签名或运行逻辑。

关联 PR: https://gitcode.com/cann/runtime/merge_requests/5770

likedislike
KaranocaVeKaranocaVe
Oct 22 Associated pull request
KaranocaVeKaranocaVe
Oct 22 Modify description of issue
duanpengliang
duanpengliangCollaborators
Oct 22 Comments:

初步分析,rtStreamGetSqid 的用途说明有误,rtStreamGetCqid 的输出参数注释与声明错配。已有关联 PR,我们会尽快核实其修订内容。

likedislike
duanpengliangduanpengliangCollaborators
Oct 22 Assign ykl999 as responsible person
ykl999
ykl999Collaborators
Oct 22 Comments:

你好,相关仓间接口rtStreamGetSqid 和 rtStreamGetCqid 描述改进已合入,issue关闭处理

likedislike
ykl999ykl999Collaborators
Oct 22 changed custom state from 进行中 to 已解决
ykl999ykl999Collaborators
Oct 22 Close issue
CANN-robotCANN-robotCollaborators
Oct 22 Added label: resolved