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

Thorsten Blaß via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 02:49:43 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:

Yes, if ROCm 6.2 is eventually available during the build process, the new implementation will be used. 

Regarding your second question. Are you referring to a method that determines the HSA version at runtime?

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


More information about the llvm-commits mailing list