Aok1 2021-10-07 17:04 采纳率: 100%
浏览 22
已结题

在ppc64le上编译tensorflow-gpu进行安装时报错

报错部分如下:


```python
ERROR: An error occurred during the fetch of repository 'local_config_cuda':
   Traceback (most recent call last):
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 1210
        _create_local_cuda_repository(<1 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 934, in _create_local_cuda_repository
        _find_libs(repository_ctx, <2 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 577, in _find_libs
        _check_cuda_libs(repository_ctx, <2 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 479, in _check_cuda_libs
        execute(repository_ctx, <1 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/remote_config/common.bzl", line 208, in execute
        fail(<1 more arguments>)
Repository command failed
Traceback (most recent call last):
  File "script.py", line 88, in <module>
    main()
  File "script.py", line 77, in main
    check_cuda_lib(path, check_soname=args[i + 1] == "True")
  File "script.py", line 62, in check_cuda_lib
    output = subprocess.check_output([objdump, "-p", path]).decode("ascii")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 40: ordinal not in range(128)
ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 1210
        _create_local_cuda_repository(<1 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 934, in _create_local_cuda_repository
        _find_libs(repository_ctx, <2 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 577, in _find_libs
        _check_cuda_libs(repository_ctx, <2 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 479, in _check_cuda_libs
        execute(repository_ctx, <1 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/remote_config/common.bzl", line 208, in execute
        fail(<1 more arguments>)
Repository command failed
Traceback (most recent call last):
  File "script.py", line 88, in <module>
    main()
  File "script.py", line 77, in main
    check_cuda_lib(path, check_soname=args[i + 1] == "True")
  File "script.py", line 62, in check_cuda_lib
    output = subprocess.check_output([objdump, "-p", path]).decode("ascii")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 40: ordinal not in range(128)
WARNING: Target pattern parsing failed.
ERROR: no such package '@local_config_cuda//cuda': Traceback (most recent call last):
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 1210
        _create_local_cuda_repository(<1 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 934, in _create_local_cuda_repository
        _find_libs(repository_ctx, <2 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 577, in _find_libs
        _check_cuda_libs(repository_ctx, <2 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/gpus/cuda_configure.bzl", line 479, in _check_cuda_libs
        execute(repository_ctx, <1 more arguments>)
    File "/home/owner/Downloads/tensorflow-2.2.0/third_party/remote_config/common.bzl", line 208, in execute
        fail(<1 more arguments>)
Repository command failed
Traceback (most recent call last):
  File "script.py", line 88, in <module>
    main()
  File "script.py", line 77, in main
    check_cuda_lib(path, check_soname=args[i + 1] == "True")
  File "script.py", line 62, in check_cuda_lib
    output = subprocess.check_output([objdump, "-p", path]).decode("ascii")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 40: ordinal not in range(128)
INFO: Elapsed time: 0.404s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
    currently loading: tensorflow/tools/pip_package


https://github.com/tensorflow/tensorflow/tags #TENSORFLOW
sudo gedit configure.py
https://oplab9.parqtec.unicamp.br/pub/ppc64el/bazel/
  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 10月15日
    • 修改了问题 10月11日
    • 创建了问题 10月7日

    悬赏问题

    • ¥20 wordpress如何限制ip访问频率
    • ¥15 自研小游戏,需要后台服务器存储用户数据关卡配置等数据
    • ¥15 请求解答odoo17外发加工某工序的实操方法
    • ¥20 IDEA ssm项目 跳转页面报错500
    • ¥20 系统直接进入应急模式了,请教一下,人要裂开了
    • ¥15 页面初次加载时,JS调用对象可以调用成功,但是一旦跳转到另一个页面,再跳转回来后这个对象就显示undefind了,调用也调用不了了,什么原因?
    • ¥15 来个厉害的程序开发的,安排点活给你做
    • ¥15 rexroth indramotion MTX micro系统轴耦合编程
    • ¥100 springboot2.7.x 整合 sharding 的问题
    • ¥15 如何通过命令行操作统信360安全浏览器?