Repository navigation
[SYCL][clang-linker-wrapper] Wrap all architectures in one module for -fno-sycl-rdc #23492
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
Merged
uditagarwal97
merged 8 commits into
intel:sycl
from
srividya-sundaram:sycl-linker-wrapper-nordc-multi-arch
Oct 20, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4ff6a3c
[SYCL][clang-linker-wrapper] Wrap all architectures in one module for…
srividya-sundaram c56a019
Trigger CI with the new-offload-model label
srividya-sundaram aa39cb9
Name the triples in the --no-sycl-rdc mixed-triple error
srividya-sundaram 240a124
Check the --no-sycl-rdc target triples before device compilation
srividya-sundaram 33a8f57
[SYCL][E2E] Run a -fno-sycl-rdc object built for two GPU architectures
srividya-sundaram 8b8ff56
Rename SplitModuleList to SplitModulesVec and test the missing triple…
srividya-sundaram c99f528
[SYCL][E2E] Link the -fno-sycl-rdc object without -fsycl in the new o…
srividya-sundaram 50b44e3
[SYCL][E2E] Keep the -fsycl link of early_aot_multi_arch.cpp on Windows
srividya-sundaram File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // Check that a -fno-sycl-rdc object built for two GPU architectures carries | ||
| // the device images of both and runs on either device. | ||
|
|
||
| // REQUIRES: ocloc, target-spir | ||
| // REQUIRES: arch-intel_gpu_acm_g10 || arch-intel_gpu_bmg_g21 | ||
|
|
||
| // RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_acm_g10,intel_gpu_bmg_g21 -fno-sycl-rdc -c %S/Inputs/simple.cpp -o %t.o | ||
| // With the new offloading model the object already contains the wrapped device | ||
| // images, so a plain host link is enough. The old model extracts them from the | ||
| // object's offload bundle at a -fsycl link. On Windows, -fsycl also selects the | ||
| // dynamic C runtime that the object was compiled for. | ||
| // RUN: %clangxx %if new-offload-model && linux %{ -Wno-unused-command-line-argument %t.o -o %t.out %sycl_options %} %else %{ -fsycl %t.o -o %t.out %} | ||
|
srividya-sundaram marked this conversation as resolved.
|
||
| // RUN: %{run} %t.out | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.