Skip to content

Commit 98dc885

Browse files
committed
Fix default toolkit path
1 parent 8381784 commit 98dc885

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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: 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."""

0 commit comments

Comments
 (0)