From 5a1694ba01304d6bc168c2fa76aad72792bc037a Mon Sep 17 00:00:00 2001 From: Alexandros Theodoridis Date: Mon, 2 Dec 2024 08:30:21 +0000 Subject: [PATCH] Use linkopts --- third_party/tsl/third_party/gpus/rocm/BUILD.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/tsl/third_party/gpus/rocm/BUILD.tpl b/third_party/tsl/third_party/gpus/rocm/BUILD.tpl index 4fa1770c93fb82..ca7bacba70536c 100644 --- a/third_party/tsl/third_party/gpus/rocm/BUILD.tpl +++ b/third_party/tsl/third_party/gpus/rocm/BUILD.tpl @@ -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/**", @@ -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/**", @@ -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*",