PaddlePaddle / PaddleCustomDevice

PaddlePaddle custom device implementaion. (『飞桨』自定义硬件接入实现)
Apache License 2.0
70 stars 148 forks source link

[bug]openi容器中编译报错 #1367

Open bltcn opened 3 months ago

bltcn commented 3 months ago

[root@i02b565b66d24833aa365f540872143f-task0-0 npu]# bash tools/compile.sh+++ dirname tools/compile.sh ++ cd tools/../ ++ pwd

-- Configuring incomplete, errors occurred! See also "/home/ma-user/PaddleCustomDevice/backends/npu/build/CMakeFiles/CMakeOutput.log".

环境 python 3.9 gcc 7.3 NPU: 1*Ascend-D910B, CPU: 20, 显存: 32GB, 内存: 60GB

[root@i02b565b66d24833aa365f540872143f-task0-0 npu]# npu-smi info +------------------------------------------------------------------------------------------------+ | npu-smi 23.0.rc2.2 Version: 23.0.0 | +---------------------------+---------------+----------------------------------------------------+ | NPU Name | Health | Power(W) Temp(C) Hugepages-Usage(page)| | Chip | Bus-Id | AICore(%) Memory-Usage(MB) HBM-Usage(MB) | +===========================+===============+====================================================+ | 0 910B | OK | 68.5 32 0 / 0 | | 0 | 0000:C1:00.0 | 0 1280 / 13553 0 / 32768 | +===========================+===============+====================================================+ +---------------------------+---------------+----------------------------------------------------+ | NPU Chip | Process id | Process name | Process memory(MB) | +===========================+===============+====================================================+ | No running processes found in NPU 0 | +===========================+===============+====================================================+

[root@i02b565b66d24833aa365f540872143f-task0-0 npu]# cat /usr/local/Ascend/ascend-toolkit/latest/version.cfg

version: 1.0

runtime_running_version=[7.2.0.1.235:8.0.RC1] compiler_running_version=[7.2.0.1.235:8.0.RC1] hccl_running_version=[7.2.0.1.235:8.0.RC1] opp_running_version=[7.2.0.1.235:8.0.RC1] toolkit_running_version=[7.2.0.1.235:8.0.RC1] aoe_running_version=[7.2.0.1.235:8.0.RC1] ncs_running_version=[7.2.0.1.235:8.0.RC1] opp_kernel_running_version=[7.2.0.1.235:8.0.RC1] runtime_upgrade_version=[7.2.0.1.235:8.0.RC1] compiler_upgrade_version=[7.2.0.1.235:8.0.RC1] opp_upgrade_version=[7.2.0.1.235:8.0.RC1] toolkit_upgrade_version=[7.2.0.1.235:8.0.RC1] aoe_upgrade_version=[7.2.0.1.235:8.0.RC1] ncs_upgrade_version=[7.2.0.1.235:8.0.RC1] hccl_upgrade_version=[7.2.0.1.235:8.0.RC1] opp_kernel_upgrade_version=[7.2.0.1.235:8.0.RC1] runtime_installed_version=[7.0.0.5.242:7.0.RC1][7.2.0.1.235:8.0.RC1] compiler_installed_version=[7.0.0.5.242:7.0.RC1][7.2.0.1.235:8.0.RC1] opp_installed_version=[7.0.0.5.242:7.0.RC1][7.2.0.1.235:8.0.RC1] toolkit_installed_version=[7.0.0.5.242:7.0.RC1][7.2.0.1.235:8.0.RC1] aoe_installed_version=[7.0.0.5.242:7.0.RC1][7.2.0.1.235:8.0.RC1] ncs_installed_version=[7.0.0.5.242:7.0.RC1][7.2.0.1.235:8.0.RC1] hccl_installed_version=[7.2.0.1.235:8.0.RC1] opp_kernel_installed_version=[7.2.0.1.235:8.0.RC1]

[root@i02b565b66d24833aa365f540872143f-task0-0 npu]# cat /usr/local/Ascend/driver/version.info Version=23.0.rc2.2 ascendhal_version=7.25.6 aicpu_version=1.0 tdt_version=1.0 log_version=1.0 prof_version=2.0 dvppkernels_version=1.1 tsfw_version=1.0 Innerversion=V100R001C30SPC002B220 compatible_version=[V100R001C30] compatible_version_fw=[6.4.0,6.4.99] package_version=23.0.rc2.2

YanhuiDua commented 3 months ago

你好,报错的原因是编译时没有找到python包,请确认你环境里的python3.9是否安装成功,环境变量是否设置正确。推荐使用我们提供的镜像进行开发