From 0d3576fe7f8752033e1051c3ff1fb34e8cd67b9f Mon Sep 17 00:00:00 2001 From: Aaron En Ye Shi Date: Wed, 3 Feb 2021 19:41:35 +0000 Subject: [PATCH] SWDEV-263964 - Fix hipcc --hip-device-lib-path On Windows, there may be spaces in the directory location. Therefore, must add quotes when adding this path with a location in C:/Program Files/. Change-Id: I63642093092e25a2f6ed73b55a7afd16835ac736 [ROCm/clr commit: e4c1c79b2b594a891d6ac2ba92f216ad02b84ef5] --- projects/clr/hipamd/bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/bin/hipcc b/projects/clr/hipamd/bin/hipcc index ac52b1fde3..8e567fd65e 100755 --- a/projects/clr/hipamd/bin/hipcc +++ b/projects/clr/hipamd/bin/hipcc @@ -683,7 +683,7 @@ if ($HIP_PLATFORM eq "amd") { if ($hasHIP) { if ($DEVICE_LIB_PATH ne "$ROCM_PATH/amdgcn/bitcode") { - $HIPCXXFLAGS .= " --hip-device-lib-path=$DEVICE_LIB_PATH"; + $HIPCXXFLAGS .= " --hip-device-lib-path=\"$DEVICE_LIB_PATH\""; } $HIPCXXFLAGS .= " -fhip-new-launch-api"; }