From 3659239421c78c39a2f3e7f881e03e411b21840d Mon Sep 17 00:00:00 2001 From: Alexandros Theodoridis Date: Tue, 19 Nov 2024 15:30:03 +0000 Subject: [PATCH] Change copts to linkopts --- third_party/tsl/third_party/gpus/rocm/BUILD.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/tsl/third_party/gpus/rocm/BUILD.tpl b/third_party/tsl/third_party/gpus/rocm/BUILD.tpl index 398cd7275f58b3..7e76f773a1b6f8 100644 --- a/third_party/tsl/third_party/gpus/rocm/BUILD.tpl +++ b/third_party/tsl/third_party/gpus/rocm/BUILD.tpl @@ -94,7 +94,6 @@ cc_library( cc_library( name = "rocblas", hdrs = glob(["%{rocm_root}/include/rocblas/**"]), - copts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"], data = glob([ "%{rocm_root}/lib/librocblas*.so*", "%{rocm_root}/lib/rocblas/**", @@ -103,6 +102,7 @@ cc_library( includes = [ "%{rocm_root}/include", ], + linkopts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"], strip_include_prefix = "%{rocm_root}", visibility = ["//visibility:public"], deps = [":rocm_config"], @@ -283,7 +283,6 @@ cc_library( cc_library( name = "hipblaslt", hdrs = glob(["%{rocm_root}/include/hipblaslt/**"]), - copts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"], data = glob([ "%{rocm_root}/lib/hipblaslt/**", "%{rocm_root}/lib/libhipblaslt.so*", @@ -292,6 +291,7 @@ cc_library( includes = [ "%{rocm_root}/include/", ], + linkopts = ["-rpath local_config_rocm/rocm/rocm_dis/lib"], strip_include_prefix = "%{rocm_root}", visibility = ["//visibility:public"], deps = [":rocm_config"],