Skip to content

Commit

Permalink
Use linkopts
Browse files Browse the repository at this point in the history
  • Loading branch information
alekstheod committed Dec 2, 2024
1 parent 6e4f8ed commit 5a1694b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions third_party/tsl/third_party/gpus/rocm/BUILD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ cc_library(
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"],
linkopts = ["-Wl,-rpath local_config_rocm/rocm/rocm_dis/lib"],
data = glob([
"%{rocm_root}/lib/librocblas*.so*",
"%{rocm_root}/lib/rocblas/**",
Expand Down Expand Up @@ -163,7 +163,7 @@ cc_library(
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"],
linkopts = ["-Wl,-rpath local_config_rocm/rocm/rocm_dis/lib"],
data = glob([
"%{rocm_root}/lib/libMIOpen*.so*",
"%{rocm_root}/share/miopen/**",
Expand Down Expand Up @@ -295,7 +295,7 @@ cc_library(
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"],
linkopts = ["-Wl,-rpath local_config_rocm/rocm/rocm_dis/lib"],
data = glob([
"%{rocm_root}/lib/hipblaslt/**",
"%{rocm_root}/lib/libhipblaslt.so*",
Expand Down

0 comments on commit 5a1694b

Please sign in to comment.