Skip to content

[WIP][Driver][SYCL] Refactor SYCL offloading behavior #19642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: sycl-web
Choose a base branch
from

Conversation

mdtoguchi
Copy link
Contributor

@mdtoguchi mdtoguchi commented Jul 30, 2025

This re-lands this change:
llvm/llvm-project@a7d9365

This was a significant update to how the offloading model is initialized
for creating the toolchains that are used.

Here, update the SYCL offloading model that is heavily dependent on
unique usage given -fsycl-targets to use this new methodology.

  • Update -fsycl-targets as an alias to --offload-targets
  • Add needed parsing to create new triples based on non-triple based
    targets (intel_gpu, etc)

jhuber6 and others added 2 commits July 24, 2025 11:48
Summary:
This patch reworks how we create offloading toolchains. Previously we
would handle this separately for all the different kinds. This patch
instead changes this to use the target triple and the offloading kind to
determine the proper toolchain. In the old case where the user only
passes `--offload-arch` we instead infer the triple from the passed
arguments. This is a pretty major overhaul but currently passes all the
clang tests with only minor changes to error messages.
This re-lands this change:
llvm/llvm-project@a7d9365

This was a significant update to how the offloading model is initialized
for creating the toolchains that are used.

Here, update the SYCL offloading model that is heavily dependent on
unique usage given -fsycl-targets to use this new methodology.

 - Update -fsycl-targets as an alias to --offload-targets
 - Add needed parsing to create new triples based on non-triple based
   targets (intel_gpu, etc)
@mdtoguchi mdtoguchi changed the title Offload target update [WIP][Driver][SYCL] Refactor SYCL offloading behavior Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants