[all-commits] [llvm/llvm-project] 51e3c3: [Offload] Implement 'olIsValidBinary' in offload ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Sep 19 10:16:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51e3c3d51ba8064c7dafd57bf19e2a54b553af03
      https://github.com/llvm/llvm-project/commit/51e3c3d51ba8064c7dafd57bf19e2a54b553af03
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-09-19 (Fri, 19 Sep 2025)

  Changed paths:
    M offload/liboffload/API/Program.td
    M offload/liboffload/src/OffloadImpl.cpp
    M offload/libomptarget/PluginManager.cpp
    M offload/plugins-nextgen/common/include/PluginInterface.h
    M offload/plugins-nextgen/common/src/PluginInterface.cpp
    M offload/unittests/OffloadAPI/CMakeLists.txt
    A offload/unittests/OffloadAPI/program/olIsValidBinary.cpp

  Log Message:
  -----------
  [Offload]  Implement 'olIsValidBinary' in offload and clean up (#159658)

Summary:
This exposes the 'isDeviceCompatible' routine for checking if a binary
*can* be loaded. This is useful if people don't want to consume errors
everywhere when figuring out which image to put to what device.

I don't know if this is a good name, I was thining like `olIsCompatible`
or whatever. Let me know what you think.

Long term I'd like to be able to do something similar to what OpenMP
does where we can conditionally only initialize devices if we need them.
That's going to be support needed if we want this to be more
generic.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list