Skip to content

Commit

Permalink
Import of PR #20858.
Browse files Browse the repository at this point in the history
Add alternative CUDA root that is used in some systems.

PiperOrigin-RevId: 711428469
  • Loading branch information
Google-ML-Automation committed Jan 3, 2025
1 parent a84e3b7 commit d458d97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xla/tsl/platform/default/cuda_root_path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ std::vector<std::string> CandidateCudaRoots() {

roots.push_back(TF_CUDA_TOOLKIT_PATH);
roots.emplace_back(std::string("/usr/local/cuda"));
roots.emplace_back(std::string("/opt/cuda"));

#if defined(PLATFORM_POSIX) && !defined(__APPLE__)
Dl_info info;
Expand Down

0 comments on commit d458d97

Please sign in to comment.