Skip to content

[SYCL] Emit SYCL fat binary for host-side wrapping - #23552

Open
bader wants to merge 4 commits into
intel:syclfrom
bader:sycl-fatbin-host-wrapping
Open

bader wants to merge 4 commits into
intel:syclfrom
bader:sycl-fatbin-host-wrapping

Conversation

@bader

@bader bader commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Align SYCL no-RDC with the upstream flow: clang-linker-wrapper
--emit-fatbin-only emits finalized post-link device images in a single
offload binary container, without wrapping or host linking, and the host
compilation wraps it for runtime registration via -foffload-include-binary.
The same container also supports device-only image extraction.

Each container entry carries the image together with the SYCL runtime
metadata (target, image format, kernel entries, properties and compile/link
options). The host compilation reads the entries back, builds the
descriptor-based registration the SYCL runtime expects and links it into the
host module.

Image dumping and compression are shared between the wrapped and fat binary
outputs. NativeCPU and --sycl-embed-ir for NVPTX/AMDGCN, which add host
objects, are diagnosed with --emit-fatbin-only.

Related to CMPLRLLVM-77274 ticket.

Co-Authored-By: OpenAI Codex noreply@openai.com

bader and others added 2 commits October 19, 2026 17:42
Align SYCL no-RDC with the upstream flow: clang-linker-wrapper
--emit-fatbin-only emits finalized post-link device images in a single
offload binary container, without wrapping or host linking, and the host
compilation wraps it for runtime registration via -foffload-include-binary.
The same container also supports device-only image extraction.

Each container entry carries the image together with the SYCL runtime
metadata (target, image format, kernel entries, properties and compile/link
options). The host compilation reads the entries back, builds the
descriptor-based registration the SYCL runtime expects and links it into the
host module.

Image dumping and compression are shared between the wrapped and fat binary
outputs. NativeCPU and --sycl-embed-ir for NVPTX/AMDGCN, which add host
objects, are diagnosed with --emit-fatbin-only.

Related to CMPLRLLVM-77274 ticket.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@bader
bader marked this pull request as ready for review October 20, 2026 01:20
@bader
bader requested review from a team as code owners October 20, 2026 01:20

This branch has not been deployed

No deployments
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.

1 participant