pip3 install -r tests/requirements.txt
requirements.txt
tileNum_
tileLength_
AscendC::PRINTF
blockLength_
int64_t
%llu
shared library validation failed
tests/requirements.txt
-r ../requirements.txt
AddExample<T>::Init
ubLength_ = tilingData->ubFactor;
AscendC::printf("Tiling blockLength is %lld\n", blockLength_);
--force
https://gitcode.com/cann/ops-nn/pull/11986
Document Link(文档链接)
Issues Section(问题文档片段)
pip3 install -r tests/requirements.txt,但该依赖文件未引用项目根目录的requirements.txt。tileNum_、tileLength_等与当前 AddExample 实现不一致的代码,使用AscendC::PRINTF,且未明确插入位置;blockLength_为int64_t,原示例使用%llu。Existing Issues(存在的问题)
shared library validation failed;文档缺少兼容性检查及后续处理说明。预期结果与修复建议
tests/requirements.txt中通过-r ../requirements.txt复用根目录依赖约束,并同步说明编译、UT各自的安装命令。AddExample<T>::Init中ubLength_ = tilingData->ubFactor;之后添加AscendC::printf("Tiling blockLength is %lld\n", blockLength_);。--force跳过检查,并说明错误使用可能导致运行时加载失败,不建议默认启用。关联PR
https://gitcode.com/cann/ops-nn/pull/11986