我正在使用 ubuntu 18.04 (x64),我安装了 cuda 10.0 和 cudnn 7.6(按照 Nvidia 的建议)以及 nvidia 驱动程序 410。我正在尝试使用 cuda 构建 tvm-7.0,但出现以下错误:
-- Configuring done
CMake Warning at CMakeLists.txt:272 (add_library):
Cannot generate a safe runtime search path for target tvm_topi because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/usr/local/cuda-10.0/lib64
Some of these libraries may not be found correctly.
CMake Warning at CMakeLists.txt:271 (add_library):
Cannot generate a safe runtime search path for target tvm because files in
some directories may conflict with libraries in implicit directories:
runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/usr/local/cuda-10.0/lib64
Some of these libraries may not be found correctly.
CMake Warning at CMakeLists.txt:273 (add_library):
Cannot generate a safe runtime search path for target tvm_runtime because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/usr/local/cuda-10.0/lib64
Some of these libraries may not be found correctly.
我不知道这个问题。
答案1
该问题不会产生任何错误来停止安装。有来自先前安装的 cudnn 的库。要解决警告,只需转到 /usr/lib/x86_64-linux-gnu 并删除 libcudnn.so.7 即可。