[all-commits] [llvm/llvm-project] ff12c0: [Offload] Ensure to load images when the device is...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Tue Aug 13 14:41:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff12c0061b7dbb8a82681a0e02a513bb84b1d143
      https://github.com/llvm/llvm-project/commit/ff12c0061b7dbb8a82681a0e02a513bb84b1d143
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2024-08-13 (Tue, 13 Aug 2024)

  Changed paths:
    M offload/include/device.h
    M offload/src/PluginManager.cpp
    M offload/src/interface.cpp
    M offload/src/omptarget.cpp
    M offload/src/private.h
    A offload/test/offloading/ctor_dtor_api.cpp
    A offload/test/offloading/ctor_dtor_lazy.cpp

  Log Message:
  -----------
  [Offload] Ensure to load images when the device is used (#103002)

When we use the device, e.g., with an API that interacts with it, we
need to ensure the image is loaded and the constructors are executed.
Two tests are included to verify we 1) load images and run constructors
when needed, and 2) we do so lazily only if the device is actually used.

---------

Co-authored-by: Joseph Huber <huberjn at outlook.com>



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