mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Update cuda and cudnn paths to for debian
This commit is contained in:
13
configure.py
13
configure.py
@@ -839,15 +839,16 @@ def set_tf_cuda_version(environ_cp):
|
||||
cuda_toolkit_path = cygpath(cuda_toolkit_path)
|
||||
|
||||
if is_windows():
|
||||
cuda_rt_lib_path = 'lib/x64/cudart.lib'
|
||||
cuda_rt_lib_paths = ['lib/x64/cudart.lib']
|
||||
elif is_linux():
|
||||
cuda_rt_lib_path = 'lib64/libcudart.so.%s' % tf_cuda_version
|
||||
cuda_rt_lib_paths = ['%s/libcudart.so.%s' % (x, tf_cuda_version)
|
||||
for x in ['lib64', 'lib/x86_64-linux-gnu']]
|
||||
elif is_macos():
|
||||
cuda_rt_lib_path = 'lib/libcudart.%s.dylib' % tf_cuda_version
|
||||
cuda_rt_lib_paths = ['lib/libcudart.%s.dylib' % tf_cuda_version]
|
||||
|
||||
cuda_toolkit_path_full = os.path.join(cuda_toolkit_path, cuda_rt_lib_path)
|
||||
if os.path.exists(cuda_toolkit_path_full):
|
||||
break
|
||||
cuda_toolkit_paths_full = [os.path.join(cuda_toolkit_path, x) for x in cuda_rt_lib_paths]
|
||||
if any([os.path.exists(x) for x in cuda_toolkit_paths_full]):
|
||||
break
|
||||
|
||||
# Reset and retry
|
||||
print('Invalid path to CUDA %s toolkit. %s cannot be found' %
|
||||
|
||||
4
third_party/gpus/cuda_configure.bzl
vendored
4
third_party/gpus/cuda_configure.bzl
vendored
@@ -61,6 +61,7 @@ CUDA_LIB_PATHS = [
|
||||
CUPTI_HEADER_PATHS = [
|
||||
"extras/CUPTI/include/",
|
||||
"include/cuda/CUPTI/",
|
||||
"include/",
|
||||
]
|
||||
|
||||
# Lookup paths for the cupti library, relative to the
|
||||
@@ -69,7 +70,7 @@ CUPTI_HEADER_PATHS = [
|
||||
# the other CUDA libraries but rather in a special extras/CUPTI directory.
|
||||
CUPTI_LIB_PATHS = [
|
||||
"extras/CUPTI/lib64/",
|
||||
"lib/x86_64-linux-gnu",
|
||||
"lib/x86_64-linux-gnu/",
|
||||
"lib64/",
|
||||
"extras/CUPTI/libx64/",
|
||||
"extras/CUPTI/lib/",
|
||||
@@ -96,6 +97,7 @@ CUDNN_INCLUDE_PATHS = [
|
||||
NVVM_LIBDEVICE_PATHS = [
|
||||
"nvvm/libdevice/",
|
||||
"share/cuda/",
|
||||
"lib/nvidia-cuda-toolkit/libdevice/",
|
||||
]
|
||||
|
||||
# Files used to detect the NVVM libdevice path.
|
||||
|
||||
Reference in New Issue
Block a user