Skip to content

[SYCL] Optimize SYCL framework functions with -O0 #7376

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
merged 34 commits into from
Feb 14, 2023

Conversation

maksimsab
Copy link
Contributor

No description provided.

@maksimsab maksimsab force-pushed the add_new_debug_mode branch 2 times, most recently from 28b4e66 to 66642c6 Compare December 8, 2022 13:17
LLVM infrastructure does not provide a way to add a
Pass Adaptor to run Function Passes on a subset of
functions in a Module.
This commit adds ModuleToSYCLFrameworkFunctionPassAdaptor
which runs passes over functions marked by "sycl-framework" metadata.
@maksimsab maksimsab force-pushed the add_new_debug_mode branch 2 times, most recently from 1b20349 to 30156c5 Compare December 8, 2022 13:33
@maksimsab maksimsab changed the title [NFC][SYCL] add optimization of SYCL framework functions in sycl-post-link [SYCL] add optimization of SYCL framework functions in sycl-post-link Dec 8, 2022
@maksimsab maksimsab marked this pull request as ready for review December 8, 2022 13:37
@maksimsab maksimsab requested review from a team as code owners December 8, 2022 13:37
@maksimsab
Copy link
Contributor Author

@elizabethandrews Could you please take a look at FE part?

@maksimsab maksimsab changed the title [SYCL] add optimization of SYCL framework functions in sycl-post-link [SYCL] add optimization of SYCL framework functions in Clang and -O0 LLVM Default Pipeline Dec 8, 2022
// Check that kernel is not marked with !sycl-framework metadata
// CHECK-NOT: @_ZTSZ4mainE6kernel() {{.*}} !sycl-framework
template <typename name, typename Func>
__attribute__((sycl_kernel)) void kernel_single_task(const Func &func) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest using the interface from the mock header here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It leads to error because of ambiguity of sycl namespace and anonymous namespace.

@maksimsab maksimsab temporarily deployed to aws January 27, 2023 16:07 — with GitHub Actions Inactive
@maksimsab maksimsab temporarily deployed to aws January 27, 2023 16:39 — with GitHub Actions Inactive
@maksimsab maksimsab temporarily deployed to aws January 30, 2023 14:09 — with GitHub Actions Inactive
Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

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

LGTM but might want to get final review from @AlexeySachkov

@maksimsab maksimsab temporarily deployed to aws February 6, 2023 14:34 — with GitHub Actions Inactive
@maksimsab maksimsab temporarily deployed to aws February 6, 2023 15:06 — with GitHub Actions Inactive
@maksimsab
Copy link
Contributor Author

Hi @AlexeySachkov !
Do you have any additional thoughts on this one?

@maksimsab maksimsab temporarily deployed to aws February 8, 2023 13:56 — with GitHub Actions Inactive
@maksimsab maksimsab temporarily deployed to aws February 9, 2023 04:52 — with GitHub Actions Inactive
Copy link
Contributor

@AlexeySachkov AlexeySachkov left a comment

Choose a reason for hiding this comment

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

LGTM

@bader
Copy link
Contributor

bader commented Feb 9, 2023

PR title fix suggestion:

[SYCL] Optimize SYCL framework functions with -O0

@maksimsab maksimsab changed the title [SYCL] add optimization of SYCL framework functions in Clang and -O0 LLVM Default Pipeline [SYCL] Add optimization of SYCL framework functions in Clang and -O0 LLVM Default Pipeline Feb 10, 2023
Copy link
Contributor

@asudarsa asudarsa left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@maksimsab maksimsab requested a review from a team February 13, 2023 15:41
@maksimsab maksimsab changed the title [SYCL] Add optimization of SYCL framework functions in Clang and -O0 LLVM Default Pipeline [SYCL] Optimize SYCL framework functions with -O0 Feb 14, 2023
@maksimsab
Copy link
Contributor Author

@intel/llvm-gatekeepers Can you please merge it?

@steffenlarsen steffenlarsen merged commit 4f75718 into intel:sycl Feb 14, 2023
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.

10 participants