Skip to content

Commit

Permalink
Fix default toolkit path
Browse files Browse the repository at this point in the history
  • Loading branch information
alekstheod committed Dec 4, 2024
1 parent 8381784 commit 7cc9486
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion third_party/gpus/rocm_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def _setup_rocm_distro_dir(repository_ctx):
rocm_path = repository_ctx.os.environ.get(_ROCM_TOOLKIT_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)
repository_ctx.report_progress("Using local rocm installation {}".format(rocm_path)) # buildifier: disable=print
repository_ctx.symlink(rocm_path, _DISTRIBUTION_PATH)
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DISTRIBUTION_PATH)
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)

def _create_local_rocm_repository(repository_ctx):
"""Creates the repository containing files set up to build with ROCm."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""

load(
"@tsl//third_party/gpus/rocm:rocm_redist.bzl",
"//third_party/gpus/rocm:rocm_redist.bzl",
"rocm_redist",
)
load(
Expand Down Expand Up @@ -616,7 +616,7 @@ def _setup_rocm_distro_dir(repository_ctx):
rocm_path = repository_ctx.os.environ.get(_ROCM_TOOLKIT_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)
repository_ctx.report_progress("Using local rocm installation {}".format(rocm_path)) # buildifier: disable=print
repository_ctx.symlink(rocm_path, _DISTRIBUTION_PATH)
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DISTRIBUTION_PATH)
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)

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

0 comments on commit 7cc9486

Please sign in to comment.