昇腾社区首页
中文
注册

NPU环境采集文件无hccn_tool相关命令的执行结果

问题现象

执行NPU环境检查文件npu_info_before.txt或npu_info_after.txt,部分命令无回显信息。

可能原因

hccn_tool工具未挂载至Pod容器中。

解决方式

对于hccn_tool,需将驱动工具挂载至Pod容器内。驱动工具安装在“Driver安装目录/driver/tools”目录,如“/usr/local/Ascend/driver/tools”。

containers:
   - name: ${训练容器名}
     .....                                        # 其他配置项
     volumeMounts:
     # 映射到容器目录
     - name: driver-tools
       mountPath: /usr/local/Ascend/driver/tools
     volumes:
     # 挂载本地目录
     - name: driver-tools
          hostPath:
            path: /usr/local/Ascend/driver/tools