[llvm] [OFFLOAD] Add support for host offloading device (PR #171010)
Alex Duran via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 00:40:57 PST 2025
================
@@ -131,3 +131,12 @@ def olGetDeviceInfoSize : Function {
Return<"OL_ERRC_INVALID_DEVICE">
];
}
+
+def olGetHostDevice : Function {
+ let desc = "Returns the host device.";
+ let details = [];
+ let params = [
+ Param<"ol_device_handle_t*", "Device", "handle of the device instance", PARAM_OUT>,
+ ];
+ let returns = [];
----------------
adurang wrote:
I suppose it depends why you mean by host... obviously there's always non-offload host, but there doesn't necesarily need to be a host-device (e.g., the plugin might not be enabled)
https://github.com/llvm/llvm-project/pull/171010
More information about the llvm-commits
mailing list