[all-commits] [llvm/llvm-project] b37be0: [Offload] Handle `BoundArchitecture` for non-GPU t...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Mar 19 12:16:47 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b37be0e734ecc29fe55eb9d7a8119f82afc9da54
https://github.com/llvm/llvm-project/commit/b37be0e734ecc29fe55eb9d7a8119f82afc9da54
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-03-19 (Wed, 19 Mar 2025)
Changed paths:
M clang/lib/Driver/ToolChains/Gnu.cpp
M clang/test/Driver/openmp-offload.c
Log Message:
-----------
[Offload] Handle `BoundArchitecture` for non-GPU targets (#132037)
Summary:
Offloading tends to have a bound architecture that directly correponds
to the `-mcpu` argument for that embedded job. This is currently handled
by the GPU offloading toolchains, but is ignored by the CPU ones. This
is problematic for languages like SYCL or OpenMP which permit
'offloading' to non-GPU targets. This patch handles this by putting
generic handling in the GCC toolchain for those languages.
I would've made this fully generic but it regressed some HIP sanitizer
tests because their use-case is really weird. This also only goes for
the languages that inherit from 'generic_gcc`. I could've made it in the
base class, but I felt like it wasn't necessary as we only support
offloading based off of this toolchain. In the future if we need it we
can move it around.
---------
Co-authored-by: Nick Sarnie <nick.sarnie at intel.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