[llvm] [OFFLOAD] Add missing interop API for libomptarget migration (PR #172951)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 18 21:19:47 PST 2025


================
@@ -1214,5 +1214,58 @@ Error olLaunchHostFunction_impl(ol_queue_handle_t Queue,
                                                 Queue->AsyncInfo);
 }
 
+Error olCreateInterop_impl(ol_device_handle_t Device, int32_t InteropContext, void *InteropSpec,
+                           void **Interop) {
+  auto Rc = Device->Device->createInterop(InteropContext, 
----------------
fineg74 wrote:

There is a layer that implements interop functionality in the libomptarget. These are the low level operations that are device dependent (i.e. createInterop in AMD has different implementation from NVIDIA etc.) and part of GenericDeviceTy class. I am not sure how to implement it without adding new liboffload API as the main point of migration of libomptarget to liboffload is to avoid using low level abstractions there and use liboffload instead

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


More information about the llvm-commits mailing list