torch_npu 报错日志
- User
torch_npu 报错日志
- Assistant
torch_npu是用于在华为昇腾(Ascend)NPU(神经处理单元)设备上使用 PyTorch 框架的库。如果你在使用torch_npu时遇到报错,以下是一些常见的日志和解决方法:常见错误类型及解决方案
-
未找到 NPU 设备
RuntimeError: NPU device not found.解决方案:
- 确保你已经正确安装了 NPU 驱动和相关库。
- 使用
npu-smi info命令检查 NPU 设备状态。
-
未安装正确的驱动
RuntimeError: NPU driver version mismatch or driver not installed.解决方案:
-
- User
The error from device(0), serial number is 12. there is a sdma error, sdma channel is 0, the channel exist the following problems: The SMMU returns a Terminate error during page table translation.. the value of CQE status is 2. the description of CQE status: When the SQE translates a page table, the SMMU returns a Terminate error.it's config include: setting1=0xc000000880e0000, setting2=0xff009000ff004c, setting3=0, sq base addr=0x800d00000fc63000[FUNC:ProcessSdmaErrorInfo][FILE:device_error_proc.cc][LINE:704] 跨卡拷贝报错
- Assistant
根据描述的错误日志,这似乎是一个涉及跨卡拷贝操作时的 SDMA(系统直接存储器访问)错误。错误信息指出在页表转换过程中,SMMU(系统内存管理单元)返回了一个终止错误。
错误日志解析
The error from device(0), serial number is 12. there is a sdma error, sdma channel is 0, the channel exist the following problems: The SMMU returns a Terminate error during page table translation.. the value of CQE status is 2. the description of CQE status: When the SQE translates a page table, the SMMU returns a Terminate error. it's config include: setting1=0xc000000880e0000, setting2=0xff009000ff004c, setting3=0, sq base addr=0x800d00000fc63000 [FUNC:ProcessSdmaErrorInfo][FILE:device_error_proc.cc][LINE:704]潜在问题和解决方案
-
配置错误 页表配置可能不正确,导致 SMMU 终止错误。
解决方案:
- 确认内存配置是否与硬件兼容。
- 检查 SMMU 配置。
-