Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bltcn opened this issue Aug 2, 2024 · 1 comment
Open

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

bltcn opened this issue Aug 2, 2024 · 1 comment
Assignees

Comments

@bltcn
Copy link

bltcn commented Aug 2, 2024

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

  • SOURCE_ROOT=/home/ma-user/PaddleCustomDevice/backends/npu
  • mkdir -p /home/ma-user/PaddleCustomDevice/backends/npu/build
  • cd /home/ma-user/PaddleCustomDevice/backends/npu/build
    ++ uname -i
  • arch=aarch64
  • '[' aarch64 == x86_64 ']'
  • WITH_MKL=OFF
  • WITH_ARM=ON
  • WITH_ATB=OFF
  • '[' -n '' ']'
  • cat
    ========================================
    Configuring cmake in build ...
    -DCMAKE_BUILD_TYPE=Release
    -DWITH_TESTING=ON
    -DWITH_MKL=OFF
    -DWITH_ARM=ON
    -DWITH_ATB=OFF
    -DON_INFER=OFF
    -DWITH_COVERAGE=OFF
    ========================================
  • set +e
  • cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_TESTING=ON -DWITH_MKL=OFF -DWITH_ARM=ON -DWITH_ATB=OFF -DON_INFER=OFF -DWITH_COVERAGE=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
    CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
    Could NOT find Python (missing: Python_LIBRARY Python_INCLUDE_DIR
    Development) (found version "2.7.15")
    Call Stack (most recent call first):
    /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
    /usr/share/cmake/Modules/FindPython.cmake:169 (find_package_handle_standard_args)
    cmake/paddle.cmake:15 (find_package)
    CMakeLists.txt:22 (include)

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

  • cmake_error=1
  • '[' 1 '!=' 0 ']'
  • echo 'CMake Error Found !!!'
    CMake Error Found !!!
  • exit 7

环境
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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants