Skip to content

Commit 7cc9486

Browse files
committed
Fix default toolkit path
1 parent 8381784 commit 7cc9486

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

third_party/gpus/rocm_configure.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def _setup_rocm_distro_dir(repository_ctx):
616616
rocm_path = repository_ctx.os.environ.get(_ROCM_TOOLKIT_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)
617617
repository_ctx.report_progress("Using local rocm installation {}".format(rocm_path)) # buildifier: disable=print
618618
repository_ctx.symlink(rocm_path, _DISTRIBUTION_PATH)
619-
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DISTRIBUTION_PATH)
619+
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)
620620

621621
def _create_local_rocm_repository(repository_ctx):
622622
"""Creates the repository containing files set up to build with ROCm."""

third_party/xla/third_party/tsl/third_party/gpus/rocm_configure.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""
1414

1515
load(
16-
"@tsl//third_party/gpus/rocm:rocm_redist.bzl",
16+
"//third_party/gpus/rocm:rocm_redist.bzl",
1717
"rocm_redist",
1818
)
1919
load(
@@ -616,7 +616,7 @@ def _setup_rocm_distro_dir(repository_ctx):
616616
rocm_path = repository_ctx.os.environ.get(_ROCM_TOOLKIT_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)
617617
repository_ctx.report_progress("Using local rocm installation {}".format(rocm_path)) # buildifier: disable=print
618618
repository_ctx.symlink(rocm_path, _DISTRIBUTION_PATH)
619-
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DISTRIBUTION_PATH)
619+
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)
620620

621621
def _create_local_rocm_repository(repository_ctx):
622622
"""Creates the repository containing files set up to build with ROCm."""

0 commit comments

Comments
 (0)