Skip to content

[SYCL][NewOffloadModel] add support of -no-sycl-rdc in clang-linker-wrapper#22118

Merged
sarnex merged 8 commits into
intel:syclfrom
maksimsab:sycl-no-rdc-new-offload/clang-linker-wrapper-change
Jul 1, 2026
Merged

[SYCL][NewOffloadModel] add support of -no-sycl-rdc in clang-linker-wrapper#22118
sarnex merged 8 commits into
intel:syclfrom
maksimsab:sycl-no-rdc-new-offload/clang-linker-wrapper-change

Conversation

@maksimsab

Copy link
Copy Markdown
Contributor

No description provided.

@maksimsab maksimsab force-pushed the sycl-no-rdc-new-offload/clang-linker-wrapper-change branch from c8fc91d to 19d314d Compare May 27, 2026 13:34
@maksimsab maksimsab force-pushed the sycl-no-rdc-new-offload/clang-linker-wrapper-change branch from 19d314d to d6e538b Compare June 18, 2026 17:08
@maksimsab maksimsab changed the title [SYCL][NewOffloadModel] Add no-rdc-sycl support in clang-linker-wrapper [SYCL][NewOffloadModel] add support of -no-sycl-rdc in clang-linker-wrapper Jun 18, 2026
@maksimsab maksimsab marked this pull request as ready for review June 18, 2026 17:09
@maksimsab maksimsab requested review from a team as code owners June 18, 2026 17:09
@maksimsab maksimsab added the new-offload-model Enables testing with NewOffloadModel. label Jun 18, 2026

@YuriPlyakhin YuriPlyakhin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maksimsab , is this PR ready for review?
I'm asking because there are quite a few tests failing - are those fails related?

@maksimsab

Copy link
Copy Markdown
Contributor Author

RHEL compilation failure is addressed.
Other failures aren't related to these patch. See #22372

@sarnex sarnex left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some design questions

return LinkedModuleOrErr.takeError();
// Note: pipeline can skip linking due to -fno-sycl-rdc option.
// In that case, we apply sycl processing to several modules.
std::vector<StringRef> Modules;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only change required for -fno-sycl-rdc support in the new offload model? Or are Clang driver changes also required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be one more patch in Clang Driver that sets this options for clang-linker-wrapper.

Comment thread clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Comment thread clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Comment thread clang/test/Driver/clang-linker-wrapper.cpp Outdated
Comment thread clang/test/Driver/clang-linker-wrapper.cpp Outdated

@YuriPlyakhin YuriPlyakhin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lack of test, nit. Otherwise, I would approve. thanks!

Comment thread clang/test/Driver/clang-linker-wrapper.cpp Outdated
@maksimsab maksimsab requested a review from YuriPlyakhin June 30, 2026 13:55
@maksimsab

maksimsab commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

Hi @intel/dpcpp-clang-driver-reviewers !
Could you please take a look? Your review is required here by the github.

@YuriPlyakhin YuriPlyakhin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Comment thread clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp Outdated
@sarnex sarnex merged commit bfa0f66 into intel:sycl Jul 1, 2026
34 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-offload-model Enables testing with NewOffloadModel.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants