[all-commits] [llvm/llvm-project] d60eed: [Offload] Do not load images from the same descrip...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri May 9 06:22:01 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d60eeda2e5179cbdb2af70a7531dd437082724aa
https://github.com/llvm/llvm-project/commit/d60eeda2e5179cbdb2af70a7531dd437082724aa
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
M offload/libomptarget/PluginManager.cpp
Log Message:
-----------
[Offload] Do not load images from the same descriptor on the same device (#139147)
Summary:
Right now we generally assume that we have one image per device. The
binary descriptor represents a single 'compilation'. This means that
each image is going to contain the same code built for different
architectures when used through the OpenMP interface. This is
problematic when we have cases where the same code will then be loaded
multiple times (like wiht sm_80, sm_89 or the generic GFX ISAs). This
patch is the quick and dirty slution, we just prevent this from
happening at all. This means we use the first one we find, which might
not be overly optimal, but it should be better than the alternative.
Note that this does not affect shared library loads as it is per binary
descriptor, not per device.
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