ubuntu 22.04 arm 架构,安装昇思报 opp_kernel 没安装

各位大佬,在ubuntu 22.04 arm 架构,安装昇思报 opp_kernel 没安装,求指导。

环境

root@ubuntu:~# cat /etc/os-release
PRETTY_NAME=“Ubuntu 22.04.5 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.5 LTS (Jammy Jellyfish)”
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL=“https://www.ubuntu.com/
SUPPORT_URL=“https://help.ubuntu.com/
BUG_REPORT_URL=“Bugs : Ubuntu
PRIVACY_POLICY_URL=“Data privacy | Ubuntu and Canonical Legal
UBUNTU_CODENAME=jammy
root@ubuntu:~# uname -a
Linux ubuntu 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:57:31 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

报错日志

root@ubuntu:~# python3 -c “import mindspore;mindspore.set_device(‘Ascend’);mindspore.run_check()”

[WARNING] DEVICE(4044128,ffff8d371020,python3):2025-07-22-10:15:07.135.928 [mindspore/ccsrc/utils/dlopen_macro.h:165] DlsymAscend] Dynamically load symbol aclprofGetSupportedFeaturesV2 failed, result = /usr/local/Ascend/ascend-toolkit/latest/lib64/libmsprofiler.so: undefined symbol: aclprofGetSupportedFeaturesV2

[WARNING] DEVICE(4044128,ffff8d371020,python3):2025-07-22-10:15:07.136.022 [mindspore/ccsrc/utils/dlopen_macro.h:165] DlsymAscend] Dynamically load symbol aclrtEventGetTimestamp failed, result = /usr/local/Ascend/ascend-toolkit/latest/lib64/libascendcl.so: undefined symbol: aclrtEventGetTimestamp

/usr/local/lib/python3.10/dist-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class ‘numpy.float64’> type is zero.

setattr(self, word, getattr(machar, word).flat[0])

/usr/local/lib/python3.10/dist-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class ‘numpy.float64’> type is zero.

return self._float_to_str(self.smallest_subnormal)

/usr/local/lib/python3.10/dist-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class ‘numpy.float32’> type is zero.

setattr(self, word, getattr(machar, word).flat[0])

/usr/local/lib/python3.10/dist-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class ‘numpy.float32’> type is zero.

return self._float_to_str(self.smallest_subnormal)

[CRITICAL] ME(4044128:281473050939424,MainProcess):2025-07-22-10:15:09.232.000 [mindspore/run_check/_check_version.py:369] MindSpore relies on “Ascend opp_kernel” folder of the Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: MindSpore安装 | 昇思MindSpore社区

Traceback (most recent call last):

File “”, line 1, in

File “/usr/local/lib/python3.10/dist-packages/mindspore/init.py”, line 18, in

from mindspore.run_check import run_check

File “/usr/local/lib/python3.10/dist-packages/mindspore/run_check/init.py”, line 17, in

from ._check_version import check_version_and_env_config

File “/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py”, line 523, in

check_version_and_env_config()

File “/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py”, line 483, in check_version_and_env_config

MSContext.get_instance().set_device_target_inner(MSContext.get_instance().get_param(ms_ctx_param.device_target))

RuntimeError: Exception: Ascend opp_kernel is not installed

At:

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(372): check_opp_kernel

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(402): set_env

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(466): set_env

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(483): check_version_and_env_config

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(523):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/init.py(17):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/init.py(18):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

(1):


  • C++ Call Stack: (For framework developers)

mindspore/core/utils/ms_context.cc:339 SetEnv

[CRITICAL] ME(4044128:281473050939424,MainProcess):2025-07-22-10:15:09.294.000 [mindspore/run_check/_check_version.py:369] MindSpore relies on “Ascend opp_kernel” folder of the Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: MindSpore安装 | 昇思MindSpore社区

[ERROR] COMMON(4044128,ffff8d371020,python3):2025-07-22-10:15:09.295.439 [mindspore/ccsrc/pybind_api/init.cc:659] operator()] Failed to parse profiler data.RuntimeError: Exception: Ascend opp_kernel is not installed

At:

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(372): check_opp_kernel

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(402): set_env

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(466): set_env

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(483): check_version_and_env_config

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(523):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/init.py(17):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/init.py(18):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

(241): _call_with_frames_removed

(992): _find_and_load_unlocked

(1027): _find_and_load


  • C++ Call Stack: (For framework developers)

mindspore/core/utils/ms_context.cc:339 SetEnv

At:

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(483): check_version_and_env_config

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(523):

(241): _call_with_frames_removed

(883): exec_module

(703): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/init.py(17):

(241): _call_with_frames_removed

(883): exec_module

(703): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/init.py(18):

(241): _call_with_frames_removed

(883): exec_module

(703): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

(241): _call_with_frames_removed

(992): _find_and_load_unlocked

(1027): _find_and_load

[CRITICAL] ME(4044128:281473050939424,MainProcess):2025-07-22-10:15:09.297.000 [mindspore/run_check/_check_version.py:369] MindSpore relies on “Ascend opp_kernel” folder of the Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: MindSpore安装 | 昇思MindSpore社区

Exception ignored in atexit callback: <built-in method of PyCapsule object at 0xfffeae7041b0>

Traceback (most recent call last):

File “/usr/local/lib/python3.10/dist-packages/mindspore/init.py”, line 18, in

from mindspore.run_check import run_check

File “/usr/local/lib/python3.10/dist-packages/mindspore/run_check/init.py”, line 17, in

from ._check_version import check_version_and_env_config

File “/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py”, line 523, in

check_version_and_env_config()

File “/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py”, line 483, in check_version_and_env_config

MSContext.get_instance().set_device_target_inner(MSContext.get_instance().get_param(ms_ctx_param.device_target))

RuntimeError: Exception: Ascend opp_kernel is not installed

At:

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(372): check_opp_kernel

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(402): set_env

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(466): set_env

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(483): check_version_and_env_config

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/_check_version.py(523):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/run_check/init.py(17):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

/usr/local/lib/python3.10/dist-packages/mindspore/init.py(18):

(241): _call_with_frames_removed

(883): exec_module

(688): _load_unlocked

(1006): _find_and_load_unlocked

(1027): _find_and_load

(241): _call_with_frames_removed

(992): _find_and_load_unlocked

(1027): _find_and_load

(241): _call_with_frames_removed

(992): _find_and_load_unlocked

(1027): _find_and_load

(241): _call_with_frames_removed

(992): _find_and_load_unlocked

(1027): _find_and_load


  • C++ Call Stack: (For framework developers)

mindspore/core/utils/ms_context.cc:339 SetEnv

opp_kernel 信息

cat /usr/local/Ascend/nnae/latest/opp_kernel/version.info

Version=7.6.0.1.220
version_dir=8.0.0
timestamp=20241231_000821303
ops_version=7.6.0.1.220
adk_version=7.6.0.1.220
required_package_amct_acl_version=“7.6”
required_package_aoe_version=“7.6”
required_package_compiler_version=“7.6”
required_package_fwkplugin_version=“7.6”
required_package_hccl_version=“7.6”
required_package_nca_version=“7.6”
required_package_ncs_version=“7.6”
required_package_opp_version=“7.6”
required_package_runtime_version=“7.6”
required_package_toolkit_version=“7.6”

用户您好,欢迎使用MindSpore。还请补充下您的MindSpore版本信息,方便更快定位问题~

2.6.0

是不是kernels安装包没装,安装mindspore之前,先要确保对应版本的cannt和kernels安装包已安装,且kernels安装包也要选择与你当前的昇腾芯片的型号匹配安装包

kernels 包是指这个吗?

cat /usr/local/Ascend/nnae/latest/opp_kernel/version.info

Version=7.6.0.1.220
version_dir=8.0.0
timestamp=20241231_000821303
ops_version=7.6.0.1.220
adk_version=7.6.0.1.220
required_package_amct_acl_version=“7.6”
required_package_aoe_version=“7.6”
required_package_compiler_version=“7.6”
required_package_fwkplugin_version=“7.6”
required_package_hccl_version=“7.6”
required_package_nca_version=“7.6”
required_package_ncs_version=“7.6”
required_package_opp_version=“7.6”
required_package_runtime_version=“7.6”
required_package_toolkit_version=“7.6”


安装cann的时候,有对应版本和芯片型号的kernels算子二进制包;装好cann-toolkit和kernels,应该就不会有这个问题

用户您好,MindSpore支撑人已经分析并给出了问题的原因,由于较长时间未看到您采纳回答,这里版主将进行采纳回答的结帖操作,如果还其他疑问请发新帖子提问,谢谢支持~

重装系统后已经好了,可能是前期安装驱动时系统尝试过多个版本的驱动导致,谢谢各位大佬。

建议cann的安装文档把kernels部分也补充进去,目前文档只给了Toolkit的示例,之后使用出问题的时候根本不知道哪一步出错了