[llvm] [Offload] Implement the remaining initial Offload API (PR #122106)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 09:02:42 PDT 2025


================
@@ -104,3 +104,15 @@ def : Function {
     Return<"OL_ERRC_INVALID_DEVICE">
   ];
 }
+
+def : Function {
+  let name = "olGetHostDevice";
----------------
jhuber6 wrote:

HSA does it with callbacks, it's a little clumsy but the most general https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-gpu-loader/amdhsa.cpp#L93.

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


More information about the llvm-commits mailing list