diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index a7e494ffde..b8925cf90d 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/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 "; } }