[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 09:36:25 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 suppose we need to be more vocal to the HSA developers that we really need the API to be versioned whenever a new interface is added. I really don't want us to depend on HIP here just for a version check that should be in HSA anyway.

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


More information about the llvm-commits mailing list