[llvm] [AMDGPU][OpenMP] Using HSA API calls for APU detection. (PR #90186)

Thorsten Blaß via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 06:13:01 PDT 2024


================
@@ -57,6 +57,12 @@
 #endif
 
 #if defined(__has_include)
+#if __has_include("hip/hip_version.h")
+#include "hip/hip_version.h"
+#else
+#include "hip_version.h"
+#endif
+
----------------
ThorBl wrote:

I talked to one of the HSA guys. HSA_AMD_INTERFACE_VERSION_MINOR will be bumped up and made available with the 6.2 release. An internal PR for this has already been created. So, I tend to ride it out. I will adjust the #if condition to check for HSA_AMD_INTERFACE_VERSION_MINOR >= 5. 

https://github.com/llvm/llvm-project/pull/90186


More information about the llvm-commits mailing list