已开启
AIV Jetty source does not build against the CANN C API headers #46
KaranocaVe创建于 18 天前
18 天前 关联了pull request:AIV Jetty build failure with CANN C API headers
18 天前 修改了issue 的描述
18 天前 修改了issue 的描述
KaranocaVe
16 天前 评论:
16 天前 评论:
/assign


16 天前 将 KaranocaVe 设为负责人
AIV Jetty source does not build against the CANN C API headers
Symptom
At source commit
79de7e489db8db78f8fe3b616682099a888a204d, the AIV Jetty implementation includesc_api/utils/sys_var.h, while the installed CANN package providesc_api/sys_var/sys_var.h. After that include is corrected locally, the same file callsReadGmBypassDCacheandWriteGmBypassDCache; the C API declaresReadGmByPassDCacheandWriteGmByPassDCache.The public
examples/simt_jettybuild therefore stops before producing an executable. The failure is in the AIV Jetty header pulled by the public Jetty header, so it affects any translation unit that includes the Jetty API for the supporteddav-3510target.Reproduction
From the
asc-commsource tree, with CANN 9.2.0-beta.2 configured:The baseline build exits 2 at the first source use and reports:
Changing only that include in a generated build copy exposes 12 further errors for the
ReadGmBypassDCache/WriteGmBypassDCachespellings. Applying the 13-line correction infix.patchmakes the same build complete successfully (exit 0).Expected and actual
examples/simt_jettycompiles fordav-3510with the declared CANN C API headers.Root cause and boundary
The AIV Jetty implementation was committed with an SDK header path and helper names that do not match the C API shipped with the declared CANN toolchain. The correction is limited to the include path and the two helper spellings; no queue, WQE, or runtime behavior was changed.
Runtime scope
No device data-plane result is claimed; this case is established by the deterministic compiler failure and fixed-build comparison.
Validation
Fixed source
cann/asc-comm79de7e489db8db78f8fe3b616682099a888a204d9.2.0-beta.2, targetdav-3510Baseline build
Command:
Exit code:
2.Key output:
The installed include tree contains
c_api/sys_var/sys_var.hand noc_api/utils/sys_var.h.Isolated fix comparison
The generated staged AIV Jetty header was changed only for the 13 lines represented by
fix.patch: one include path and theBypasstoByPassspelling in the read/write helpers. Re-running the same build command completed with exit code0and produced thesimt_jettyexecutable. The compiler emitted only existing internal-header pragma warnings.Patch integrity
Against source commit
79de7e489db8db78f8fe3b616682099a888a204d,git apply --check --whitespace=error-allpassed. The reverse apply check andgit diff --checkalso passed; the patch changes onlyhcomm_aiv_urma_jetty.h.Runtime boundary
The sample targets
dav-3510and requires at least two devices, so runtime execution was not attempted. The conclusion is limited to the reproducible source build failure and the successful isolated fixed-build comparison.关联 PR: https://gitcode.com/cann/asc-comm/merge_requests/232