Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alekstheod committed Nov 13, 2024
1 parent a73fd5c commit 466d1ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,6 @@ rocm_redist_ubuntu_20_04 = {
sha256 = "5c155c58935870bf3b4bfe769116841c0d286a74f59eccfd5645693ac23f06b1",
),
],
"install_path": "opt/rocm-6.2.0",
"rocm_root": "opt/rocm-6.2.0",
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ rocm_redist_ubuntu_24_04 = {
sha256 = "5bb6ae92a25f33488f2ee5f123ac4f67ad130e18e4949161715451509be3b89d",
),
],
"install_path": "opt/rocm-6.2.0",
"rocm_root": "opt/rocm-6.2.0",
},
}
3 changes: 2 additions & 1 deletion third_party/tsl/third_party/gpus/rocm_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ def _remove_root_dir(path, root_dir):
return path

def _setup_rocm_distro_dir(repository_ctx):
"""Sets up the rocm hermetic installation directory to be used in hermetic build"""
bash_bin = get_bash_bin(repository_ctx)
os = repository_ctx.os.environ.get(_OS)
rocm_version = repository_ctx.os.environ.get(_ROCM_VERSION)
Expand All @@ -569,7 +570,7 @@ def _setup_rocm_distro_dir(repository_ctx):
repository_ctx.file("rocm/.index")
for archive in redist["archives"]:
_download_package(repository_ctx, archive)
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH + "/" + redist["install_path"])
return _get_rocm_config(repository_ctx, bash_bin, _DISTRIBUTION_PATH + "/" + redist["rocm_root"])
else:
rocm_path = repository_ctx.os.environ.get(_ROCM_TOOLKIT_PATH, _DEFAULT_ROCM_TOOLKIT_PATH)
repository_ctx.symlink(rocm_path, _DISTRIBUTION_PATH)
Expand Down

0 comments on commit 466d1ad

Please sign in to comment.