From 6e2d1e008c5c8747b0bdf725a6ad69d8dbedd280 Mon Sep 17 00:00:00 2001 From: Alexandros Theodoridis Date: Tue, 19 Nov 2024 17:24:06 +0000 Subject: [PATCH] Change back to copts --- .../tsl/third_party/gpus/rocm/BUILD.tpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/third_party/tsl/third_party/gpus/rocm/BUILD.tpl b/third_party/tsl/third_party/gpus/rocm/BUILD.tpl index dd57a025f82af8..a291d72dbfaec3 100644 --- a/third_party/tsl/third_party/gpus/rocm/BUILD.tpl +++ b/third_party/tsl/third_party/gpus/rocm/BUILD.tpl @@ -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/**", @@ -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"], @@ -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/**", @@ -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"], @@ -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*", @@ -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"],