[all-commits] [llvm/llvm-project] 435aa7: [Libomptarget] Rework device initialization and im...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jun 6 06:11:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435aa7663d56e7216ad148ede3a422675b5f2be1
      https://github.com/llvm/llvm-project/commit/435aa7663d56e7216ad148ede3a422675b5f2be1
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-06-06 (Thu, 06 Jun 2024)

  Changed paths:
    M offload/include/PluginManager.h
    M offload/plugins-nextgen/amdgpu/src/rtl.cpp
    M offload/plugins-nextgen/common/include/PluginInterface.h
    M offload/plugins-nextgen/common/src/PluginInterface.cpp
    M offload/plugins-nextgen/cuda/src/rtl.cpp
    M offload/plugins-nextgen/host/src/rtl.cpp
    M offload/src/PluginManager.cpp
    M offload/src/omptarget.cpp

  Log Message:
  -----------
  [Libomptarget] Rework device initialization and image registration (#93844)

Summary:
Currently, we register images into a linear table according to the
logical OpenMP device identifier. We then initialize all of these images
as one block. This logic requires that images are compatible with *all*
devices instead of just the one that it can run on. This prevents us
from running on systems with heterogeneous devices (i.e. image 1 runs on
device 0 image 0 runs on device 1).

This patch reworks the logic by instead making the compatibility check a
per-device query. We then scan every device to see if it's compatible
and do it as they come.



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