Skip to content

Commit

Permalink
Add missing rocm_smi dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
alekstheod committed Nov 28, 2024
1 parent 6514167 commit c0f67e1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions third_party/tsl/third_party/gpus/rocm/BUILD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ cc_library(
":amd_comgr",
":hsa_rocr",
":rocm_config",
":rocm_smi",
":rocprofiler_register",
":system_libs",
],
Expand Down Expand Up @@ -348,6 +349,24 @@ cc_library(
deps = [":rocm_config"],
)

cc_library(
name = "rocm_smi",
srcs = glob([
"%{rocm_root}/lib/librocm_smi64.so*",
"%{rocm_root}/lib/libroam.so*",
]),
hdrs = glob([
"%{rocm_root}/include/oam/**",
"%{rocm_root}/include/rocm_smi/**",
]),
include_prefix = "rocm",
includes = [
"%{rocm_root}/include",
],
strip_include_prefix = "%{rocm_root}",
deps = [":rocm_config"],
)

cc_library(
name = "system_libs",
srcs = glob([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ rocm_redist_ubuntu_20_04 = {
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocm-llvm-dev/rocm-llvm-dev_18.0.0.24292.60200-66~20.04_amd64.deb",
sha256 = "322ca8425c3a8f2ec17c551bad606b96d957b0c1eea07196dd66ac9f15460ed5",
),
struct(
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocm-smi-lib6.2.0/rocm-smi-lib6.2.0_7.3.0.60200-66~20.04_amd64.deb",
sha256 = "1bbdb32d21dbc12bf9a736f6ca8726df9673e4401465d2b9b537c47b358b67f1",
),
struct(
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocprim-dev6.2.0/rocprim-dev6.2.0_3.2.0.60200-66~20.04_amd64.deb",
sha256 = "e74e1907eb90a692344626e881cb88eeed5565ac3b487eb94ad4ac02ffd838ed",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ rocm_redist_ubuntu_22_04 = {
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocprim-dev6.2.0/rocprim-dev6.2.0_3.2.0.60200-66~22.04_amd64.deb",
sha256 = "3d859bb735ff8bf1962ce680e9257dcc574ab36224f50069f833fa19c6d7e69d",
),
struct(
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocm-smi-lib6.2.0/rocm-smi-lib6.2.0_7.3.0.60200-66~22.04_amd64.deb",
sha256 = "ffd4e064e8a1d52b9e72114e8a1d51c78004a960f1d923448af8ed07a1b6f30b",
),
struct(
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocprofiler-register6.2.0/rocprofiler-register6.2.0_0.4.0.60200-66~22.04_amd64.deb",
sha256 = "66df78d8c5e2d1a0ae43cd4a5e41cf75ec120c870a0bbd7da18a2ba4dec42f9c",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ rocm_redist_ubuntu_24_04 = {
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocm-llvm-dev/rocm-llvm-dev_18.0.0.24292.60200-66~24.04_amd64.deb",
sha256 = "3e85a859c5dafa82a9a57dda096d566b821217bacfac995f7cc45ed460b68999",
),
struct(
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocm-smi-lib6.2.0/rocm-smi-lib6.2.0_7.3.0.60200-66~24.04_amd64.deb",
sha256 = "c094e3022c73fca2aa6c8bb435f93550109531de37fe8de5fbf6cfe1f047b645",
),
struct(
url = "https://repo.radeon.com/rocm/apt/6.2/pool/main/r/rocprim-dev6.2.0/rocprim-dev6.2.0_3.2.0.60200-66~24.04_amd64.deb",
sha256 = "6c832e2feb0885fbe481245825c76a466921b294f530eb0d0da70a44cfe6e608",
Expand Down

0 comments on commit c0f67e1

Please sign in to comment.