summaryrefslogtreecommitdiff
blob: 2ce68b733577f7b144c57d343da2a2fdef9d1f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
explicitly specify `--rocm-path=/usr` because clang does not list 
it among the default paths
===================================================================
--- HIP-rocm-5.1.3.orig/bin/hipcc.pl
+++ HIP-rocm-5.1.3/bin/hipcc.pl
@@ -696,6 +696,7 @@ if ($HIP_PLATFORM eq "amd") {
 
     if ($hasHIP) {
         if ($DEVICE_LIB_PATH ne "$ROCM_PATH/amdgcn/bitcode") {
+            $HIPCXXFLAGS .= " --rocm-path=\"$ROCM_PATH\"";
             $HIPCXXFLAGS .= " --hip-device-lib-path=\"$DEVICE_LIB_PATH\"";
         }
         $HIPCXXFLAGS .= " -fhip-new-launch-api";