aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-05-09 08:21:40 -0500
committerGitHub <noreply@github.com>2025-05-09 08:21:40 -0500
commitd60eeda2e5179cbdb2af70a7531dd437082724aa (patch)
tree5352ea96ba91945526d7054012b98534a883b195 /clang/lib/Serialization/ModuleManager.cpp
parent806b49140142dea46d31646c438d936522bb2be7 (diff)
downloadllvm-d60eeda2e5179cbdb2af70a7531dd437082724aa.zip
llvm-d60eeda2e5179cbdb2af70a7531dd437082724aa.tar.gz
llvm-d60eeda2e5179cbdb2af70a7531dd437082724aa.tar.bz2
[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.
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions