load libcupti.so shared object if libcupti.so.10.1 is not installed. This makes it possible for tensorflow to load CUPTI 10.2 via libcupti.so symlink in the event that libcupti.so.10.1 is missing.
PiperOrigin-RevId: 316782424 Change-Id: I930912f1d3a8fa80e8b91c41214c374650f08847
This commit is contained in:
parent
897e3c0eca
commit
267f956246
|
@ -101,13 +101,11 @@ port::StatusOr<void*> GetCurandDsoHandle() {
|
|||
}
|
||||
|
||||
port::StatusOr<void*> GetCuptiDsoHandle() {
|
||||
#if defined(ANDROID_TEGRA)
|
||||
// On Android devices the CUDA version number is not added to the library
|
||||
// name.
|
||||
// Load specific version of CUPTI this is built.
|
||||
auto status_or_handle = GetDsoHandle("cupti", GetCudaVersion());
|
||||
if (status_or_handle.ok()) return status_or_handle;
|
||||
// Load whatever libcupti.so user specified.
|
||||
return GetDsoHandle("cupti", "");
|
||||
#else
|
||||
return GetDsoHandle("cupti", GetCudaVersion());
|
||||
#endif
|
||||
}
|
||||
|
||||
port::StatusOr<void*> GetCudnnDsoHandle() {
|
||||
|
|
Loading…
Reference in New Issue