From e2bf34cd5e6444ee04adae7c0c496bf52cff4f31 Mon Sep 17 00:00:00 2001 From: Yaxun Sam Liu Date: Tue, 19 Mar 2019 16:25:07 -0400 Subject: [PATCH] Change HIP dll name to amdhip64.dll on Windows --- bin/hipcc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/hipcc b/bin/hipcc index d227eea267..22bf17f2f5 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -196,8 +196,10 @@ if ($HIP_PLATFORM eq "clang") { $HIPLDFLAGS .= " $HIP_DEVLIB_FLAGS -L$HIP_LIB_PATH"; if (not $isWindows) { $HIPLDFLAGS .= " -Wl,--rpath=$HIP_LIB_PATH"; + $HIPLDFLAGS .= " -lhip_hcc"; + } else { + $HIPLDFLAGS .= " -lamdhip64"; } - $HIPLDFLAGS .= " -lhip_hcc"; if ($HIP_CLANG_HCC_COMPAT_MODE) { ## Allow __fp16 as function parameter and return type. $HIPCXXFLAGS .= " -Xclang -fallow-half-arguments-and-returns -D__HIP_HCC_COMPAT_MODE__=1";