Closed
[Bug] Identity AICPU metadata references the wrong kernel library #3594
wby50065566Add on 28 days agoClosed at 22 days ago
陈思
28 days ago Comments:
28 days ago Comments:
/assign @hid29204727


28 days ago Assign hid29204727 as responsible person
22 days ago Close issue
22 days ago Added label: resolved
Problem
conversion/identity/op_kernel_aicpu/identity.jsonconfigures the Identity AICPU kernel library as:"kernelSo": "libnn_aicpu_kernels.so"However, ops-math links its AICPU kernels to
libmath_aicpu_kernels.soincmake/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:9is the only ops-math AICPU JSON that referenceslibnn_aicpu_kernels.so.cmake/symbol.cmake:438setsARM_SO_OUTPUTtolibmath_aicpu_kernels.so.libmath_aicpu_kernels.so.Suggested Fix
Change only the
kernelSovalue in Identity metadata fromlibnn_aicpu_kernels.sotolibmath_aicpu_kernels.so.