From c1456808c5dbdbe22eb6c787f2e4b3e89b1eb92e Mon Sep 17 00:00:00 2001 From: Ashutosh Mishra Date: Thu, 16 Jul 2020 11:28:08 +0530 Subject: [PATCH] Adapting to static libaray changes for hipcc Since the introduction of BUILD_SHARED_LIBS there is only one target created : libamdhip64 Which is static ( libamdhip64.a ) or Dynamic ( libamdhip64.so ) depending on whichever it is being compiled for. After this change we do not have any target libamdhip64_static which is mentioned in the hipcc for linking. Hence cleaning the same. Change-Id: Ia45c145e17b111b3f6a32299a11962b10f1cc539 [ROCm/hip commit: 9f3cf75713a14ea54e6edcc13e4ef34c33266923] --- projects/hip/bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index 941104926e..b3cae544a4 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -837,7 +837,7 @@ if ($HIP_PLATFORM eq "hcc" and $HIP_COMPILER eq "clang") { if (not $isWindows and not $compileOnly) { if ($linkType eq 0) { - $toolArgs .= " -L$HIP_LIB_PATH -lamdhip64_static -L$ROCM_PATH/lib -lhsa-runtime64 -ldl -lnuma "; + $toolArgs .= " -L$HIP_LIB_PATH -lamdhip64 -L$ROCM_PATH/lib -lhsa-runtime64 -ldl -lnuma "; } else { $toolArgs .= " -Wl,--enable-new-dtags -Wl,--rpath=$HIP_LIB_PATH:$ROCM_PATH/lib -lhip_hcc -lnuma "; }