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

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 04:54:56 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
+
----------------
jhuber6 wrote:

I'm guessing that HSA didn't bump up a `HSA_AMD_INTERFACE_VERSION_MINOR` for this feature or something?

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


More information about the llvm-commits mailing list