为macos构建tensorflow gpu时找不到-l:libnccl.so.2.4.2的库

时间:2019-03-21 06:52:36

标签: macos tensorflow compiler-errors

我正在尝试使用具有对nvidia卡的macOS的GPU支持的GPU构建Tensorflow v1.13。编译器运行1个小时左右后,它失败并显示以下消息:

ERROR: tensorflow-git/tensorflow/python/BUILD:4057:1: 
Linking of rule '//tensorflow/python:_pywrap_tensorflow_internal.so' 
failed (Exit 1)
ld: library not found for -l:libnccl.so.2.4.2
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 6455.753s, Critical Path: 404.83s, Remote (0.00% of 
the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 8705 processes: 8705 local.
FAILED: Build did NOT complete successfully

以下是我的机器配置: 带有NVIDA 650M的MAC OSX Mid 2012 Retina。 OSX 10.13.6 High Sierra,带有 CUDA 10.1,CUDNN = 7.5,NCCL 2.4.2,xcode 10.1。我可以确认cuda正常工作。

似乎找不到NCCL库,但是我已根据此处的说明安装了它们(请注意,我正在使用2.4.2版):  enter image description here

任何帮助将不胜感激。

0 个答案:

没有答案