Skip to content

Commit

Permalink
Change back to copts
Browse files Browse the repository at this point in the history
  • Loading branch information
alekstheod committed Nov 19, 2024
1 parent 87a11fc commit 6e2d1e0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions third_party/tsl/third_party/gpus/rocm/BUILD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ cc_library(
cc_library(
name = "rocblas",
hdrs = glob(["%{rocm_root}/include/rocblas/**"]),
# workaround to bring tensile files to the same fs layout as expected in the lib
# rocblas assumes that tensile files are located in ../roblas/libraries directory
copts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"],
data = glob([
"%{rocm_root}/lib/librocblas*.so*",
"%{rocm_root}/lib/rocblas/**",
Expand All @@ -102,9 +105,6 @@ cc_library(
includes = [
"%{rocm_root}/include",
],
# workaround to bring tensile files to the same fs layout as expected in the lib
# rocblas assumes that tensile files are located in ../roblas/libraries directory
linkopts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"],
strip_include_prefix = "%{rocm_root}",
visibility = ["//visibility:public"],
deps = [":rocm_config"],
Expand Down Expand Up @@ -153,6 +153,9 @@ cc_library(
cc_library(
name = "miopen",
hdrs = glob(["%{rocm_root}/include/rccl/**"]),
# workaround to bring miopen db files to the same fs layout as expected in the lib
# rocblas assumes that miopen db files are located in ../share/miopen/db directory
copts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"],
data = glob([
"%{rocm_root}/lib/libMIOpen*.so*",
"%{rocm_root}/share/miopen/**",
Expand All @@ -161,9 +164,6 @@ cc_library(
includes = [
"%{rocm_root}/include",
],
# workaround to bring miopen db files to the same fs layout as expected in the lib
# rocblas assumes that miopen db files are located in ../share/miopen/db directory
linkopts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"],
strip_include_prefix = "%{rocm_root}",
visibility = ["//visibility:public"],
deps = [":rocm_config"],
Expand Down Expand Up @@ -289,6 +289,9 @@ cc_library(
cc_library(
name = "hipblaslt",
hdrs = glob(["%{rocm_root}/include/hipblaslt/**"]),
# workaround to bring tensile files to the same fs layout as expected in the lib
# hibplatslt assumes that tensile files are located in ../hipblaslt/libraries directory
copts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"],
data = glob([
"%{rocm_root}/lib/hipblaslt/**",
"%{rocm_root}/lib/libhipblaslt.so*",
Expand All @@ -297,9 +300,6 @@ cc_library(
includes = [
"%{rocm_root}/include/",
],
# workaround to bring tensile files to the same fs layout as expected in the lib
# hibplatslt assumes that tensile files are located in ../hipblaslt/libraries directory
linkopts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"],
strip_include_prefix = "%{rocm_root}",
visibility = ["//visibility:public"],
deps = [":rocm_config"],
Expand Down

0 comments on commit 6e2d1e0

Please sign in to comment.