Closed
[Bug] Identity AICPU metadata references the wrong kernel library #3594
wby50065566Add on  28 days agoClosed at  22 days ago
wby50065566
28 days ago Create

Problem

conversion/identity/op_kernel_aicpu/identity.json configures the Identity AICPU kernel library as:

"kernelSo": "libnn_aicpu_kernels.so"

However, ops-math links its AICPU kernels to libmath_aicpu_kernels.so in cmake/symbol.cmake, and every other AICPU JSON in this repository uses that math library name.

Impact

The Identity metadata points the runtime to an AICPU shared library that is not produced by ops-math. Runtime kernel lookup/loading can therefore fail even though the Identity AICPU implementation is built into libmath_aicpu_kernels.so.

Expected Behavior

Identity should reference the shared library produced by ops-math:

"kernelSo": "libmath_aicpu_kernels.so"

Evidence

  • conversion/identity/op_kernel_aicpu/identity.json:9 is the only ops-math AICPU JSON that references libnn_aicpu_kernels.so.
  • cmake/symbol.cmake:438 sets ARM_SO_OUTPUT to libmath_aicpu_kernels.so.
  • Existing AICPU JSON files for Tile, Pow, Sqrt, Rsqrt, and AddExample use libmath_aicpu_kernels.so.

Suggested Fix

Change only the kernelSo value in Identity metadata from libnn_aicpu_kernels.so to libmath_aicpu_kernels.so.

likedislike
陈思
陈思Collaborators
28 days ago Comments:

/assign @hid29204727

likedislike
CANN-robotCANN-robotCollaborators
28 days ago Assign hid29204727 as responsible person
CANN-robotCANN-robotCollaborators
22 days ago Close issue
CANN-robotCANN-robotCollaborators
22 days ago Added label: resolved