File tree 2 files changed +4
-2
lines changed
xla/third_party/tsl/third_party/gpus/cuda/hermetic
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 29
29
"//third_party/remote_config:common.bzl" ,
30
30
"get_cpu_value" ,
31
31
"get_host_environ" ,
32
+ "realpath" ,
32
33
"which" ,
33
34
)
34
35
@@ -47,7 +48,7 @@ def _find_cc(repository_ctx):
47
48
print (("Cannot find {}, either correct your path," +
48
49
" or set the CLANG_CUDA_COMPILER_PATH or CC" +
49
50
" environment variables" ).format (cc_name )) # buildifier: disable=print
50
- return cc
51
+ return None if not cc else realpath ( repository_ctx , cc )
51
52
52
53
def _auto_configure_fail (msg ):
53
54
"""Output failure message when cuda configuration fails."""
Original file line number Diff line number Diff line change 29
29
"//third_party/remote_config:common.bzl" ,
30
30
"get_cpu_value" ,
31
31
"get_host_environ" ,
32
+ "realpath" ,
32
33
"which" ,
33
34
)
34
35
@@ -47,7 +48,7 @@ def _find_cc(repository_ctx):
47
48
print (("Cannot find {}, either correct your path," +
48
49
" or set the CLANG_CUDA_COMPILER_PATH or CC" +
49
50
" environment variables" ).format (cc_name )) # buildifier: disable=print
50
- return cc
51
+ return None if not cc else realpath ( repository_ctx , cc )
51
52
52
53
def _auto_configure_fail (msg ):
53
54
"""Output failure message when cuda configuration fails."""
You can’t perform that action at this time.
0 commit comments