Skip to content

Commit 0685152

Browse files
cancan101Vijay Vasudevan
authored and
Vijay Vasudevan
committed
Hard-code libcuda version number to "1". Fixes tensorflow#2865. (tensorflow#3576)
As per comments from nvidia-docker dev @3XX0, hardcoding "1" should be reasonably safe. The TF_CUDA_VERSION variable from the configure script is not appropriate here (it will contain something like "7.0" or "7.5", while the libcuda soname major version number should be "1").
1 parent cbfd278 commit 0685152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/stream_executor/dso_loader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ string GetCudnnVersion() { return ""; }
7272
}
7373

7474
/* static */ port::Status DsoLoader::GetLibcudaDsoHandle(void** dso_handle) {
75-
return GetDsoHandle(FindDsoPath(tensorflow::internal::FormatLibraryFileName("cuda", ""),
75+
return GetDsoHandle(FindDsoPath(tensorflow::internal::FormatLibraryFileName("cuda", "1"),
7676
GetCudaDriverLibraryPath()),
7777
dso_handle);
7878
}

0 commit comments

Comments
 (0)