Skip to content

Commit

Permalink
Set absolute compiler path for hermetic CUDA repository.
Browse files Browse the repository at this point in the history
Addressed the bug pytorch/xla#8577.

PiperOrigin-RevId: 721803568
  • Loading branch information
Google-ML-Automation committed Jan 31, 2025
1 parent c6b245c commit 936712b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ load(
"//third_party/remote_config:common.bzl",
"get_cpu_value",
"get_host_environ",
"realpath",
"which",
)

Expand All @@ -47,7 +48,7 @@ def _find_cc(repository_ctx):
print(("Cannot find {}, either correct your path," +
" or set the CLANG_CUDA_COMPILER_PATH or CC" +
" environment variables").format(cc_name)) # buildifier: disable=print
return cc
return None if not cc else realpath(repository_ctx, cc)

def _auto_configure_fail(msg):
"""Output failure message when cuda configuration fails."""
Expand Down

0 comments on commit 936712b

Please sign in to comment.