From d3db2bd95712839c23c8f59ea158766c23760a44 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 4fa1770c93fb8..ca7bacba70536 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*",