已关闭
[算子开发][内测体验][AscendC][Documentation|文档反馈]: 高阶API贡献指南中的UT target名称错误 #1601
shutong创建于  9 天前关闭于  8 天前
shutong
9 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Document Link(文档链接)

https://gitcode.com/cann/asc-devkit/blob/master/docs/zh/asc_adv_api_contributing.md

Issues Section(问题文档片段)

修改build.sh,将all修改为需要执行的UT target,以执行核函数(Kernel)侧Ascend 910B1的UT为例,target即为ascendc_utest_ascend910B1_AIV。

function build_test() {
cmake_config

build all

build ascendc_utest_ascend910B1_AIV
}

执行命令bash build.sh -t即可仅运行新增UT用例。

Existing Issues(存在的问题)

文档给出的 ascendc_utest_ascend910B1_AIV target并未在仓库中定义。
tests/api/adv_api/CMakeLists.txt 实际通过以下语句创建Kernel侧UT target:

add_executable(ascendc_ut_adv_api_kernel_${product_type}
    ...
)
因此Ascend 910B1 AIV对应的实际target为:
ascendc_ut_adv_api_kernel_ascend910B1_AIV
likedislike
Cchenyiyuan成员
9 天前 将 wuyang_hw 设为负责人
吴洋成员
8 天前 关联了pull request:修复高阶API贡献指南和API写作规范中的示例错误
吴洋成员
8 天前 评论:

你好,感谢指出问题,当前文档确实描述有误,会尽快修复

likedislike
CANN-robotCANN-robot成员
8 天前 关闭了 issue
吴洋成员
8 天前 评论:

你好,相关问题已修复。
我们先关闭此issue,如有其他问题,欢迎再提issue交流。

likedislike
CANN-robotCANN-robot成员
8 天前 添加了label:resolved