From 966ee44aae0c1e709b84e5ef47fa591a728ec867 Mon Sep 17 00:00:00 2001 From: Srinivasan Subramanian Date: Mon, 11 May 2020 15:12:38 -0700 Subject: [PATCH] hipcc doesn't find libhsakmt without ldconf entries Signed-off-by: Srinivasan Subramanian Change-Id: Iea6a43786f05c9e44dcf863f4f96a53f81384dbd --- bin/hipcc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/hipcc b/bin/hipcc index a7e494ffde..b8925cf90d 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -803,7 +803,8 @@ if ($needHipHcc) { if ($linkType eq 0) { substr($HIPLDFLAGS,0,0) = " $HIP_LIB_PATH/libamdhip64.a " ; } else { - substr($HIPLDFLAGS,0,0) = " -Wl,--enable-new-dtags -Wl,--rpath=$HIP_LIB_PATH:$ROCM_PATH/lib $HIP_LIB_PATH/libamdhip64.so "; + #Currently in ROCm some of libraries are in lib64 and rest are in lib folder in centos. + substr($HIPLDFLAGS,0,0) = " -Wl,--enable-new-dtags -Wl,--rpath=$HIP_LIB_PATH:$ROCM_PATH/lib:$ROCM_PATH/lib64 $HIP_LIB_PATH/libamdhip64.so "; } }