1.情况如下:
310的机子,系统为ubuntu20.04,linux_aarch,安装的mindspore对应版本为2.2.14,CANN安装了7.0.0的toolkit、nnae还有kernels

2.报错如下:
/home/xu_wei_chen/.local/lib/python3.8/site-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])
/home/xu_wei_chen/.local/lib/python3.8/site-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)
/home/xu_wei_chen/.local/lib/python3.8/site-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])
/home/xu_wei_chen/.local/lib/python3.8/site-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)
[WARNING] ME(3413115:281473788776464,MainProcess):2025-01-04-13:40:52.944.54 [mindspore/run_check/_check_version.py:468] Can not find driver so(need by mindspore-ascend). Please check whether the Environment Variable LD_LIBRARY_PATH is set. For details, refer to the installation guidelines: https://www.mindspore.cn/install
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/_checkparam.py", line 1313, in wrapper
return func(*args, **kwargs)
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/context.py", line 1493, in set_context
ctx.set_device_target(kwargs['device_target'])
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/context.py", line 387, in set_device_target
self.set_param(ms_ctx_param.device_target, target)
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/context.py", line 175, in set_param
self._context_handle.set_param(param, value)
RuntimeError: Unsupported device target Ascend. This process only supports one of the ['CPU']. Please check whether the Ascend environment is installed and configured correctly, and check whether current mindspore wheel package was built with "-e Ascend". For details, please refer to "Device load error message".
----------------------------------------------------
- Device load error message:
----------------------------------------------------
Load dynamic library: libmindspore_ascend.so.1 failed.
----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/core/utils/ms_context.cc:361 SetDeviceTargetFromInner
3.尝试了的方法:
1)根据gpt给出的解决方案,我查了下- Device load error message里对应的libmindspore_ascend.so.1文件是有的,通过~/.bashrc的方法将对应路径写进去了之后也米有任何帮助。
2)验证依赖库完整也没有报错

这两天从早到晚看问题,找不到头绪,只好来寻求下经验丰富的工程师的帮助了
1.情况如下:
310的机子,系统为ubuntu20.04,linux_aarch,安装的mindspore对应版本为2.2.14,CANN安装了7.0.0的toolkit、nnae还有kernels
2.报错如下:
/home/xu_wei_chen/.local/lib/python3.8/site-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])
/home/xu_wei_chen/.local/lib/python3.8/site-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)
/home/xu_wei_chen/.local/lib/python3.8/site-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])
/home/xu_wei_chen/.local/lib/python3.8/site-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)
[WARNING] ME(3413115:281473788776464,MainProcess):2025-01-04-13:40:52.944.54 [mindspore/run_check/_check_version.py:468] Can not find driver so(need by mindspore-ascend). Please check whether the Environment Variable LD_LIBRARY_PATH is set. For details, refer to the installation guidelines: https://www.mindspore.cn/install
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/_checkparam.py", line 1313, in wrapper
return func(*args, **kwargs)
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/context.py", line 1493, in set_context
ctx.set_device_target(kwargs['device_target'])
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/context.py", line 387, in set_device_target
self.set_param(ms_ctx_param.device_target, target)
File "/home/xu_wei_chen/miniconda3/envs/mindspore_py38/lib/python3.8/site-packages/mindspore/context.py", line 175, in set_param
self._context_handle.set_param(param, value)
RuntimeError: Unsupported device target Ascend. This process only supports one of the ['CPU']. Please check whether the Ascend environment is installed and configured correctly, and check whether current mindspore wheel package was built with "-e Ascend". For details, please refer to "Device load error message".
----------------------------------------------------
- Device load error message:
----------------------------------------------------
Load dynamic library: libmindspore_ascend.so.1 failed.
----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/core/utils/ms_context.cc:361 SetDeviceTargetFromInner
3.尝试了的方法:
1)根据gpt给出的解决方案,我查了下- Device load error message里对应的libmindspore_ascend.so.1文件是有的,通过~/.bashrc的方法将对应路径写进去了之后也米有任何帮助。
2)验证依赖库完整也没有报错
这两天从早到晚看问题,找不到头绪,只好来寻求下经验丰富的工程师的帮助了