Skip to content

[SYCL] [NATIVECPU] Disabling default -sycl-opt for NativeCPU and updating docs #12025

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 8 commits into from
Nov 29, 2023

Conversation

uwedolinsky
Copy link
Contributor

This PR no longer passes -mllvm -sycl-opt to the device compiler invocation for NativeCPU to enable the original full llvm optimization pipeline.

EnvironmentVariables.md has been updated to document NativeCPU and its usage in environment variables.

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Docs changes LGTM! Maybe I just don't see the relation, but could this have been two PRs, i.e. one for -sycl-opt and one for the docs changes? If yes, we should aim for having that in the future. It makes the history cleaner and the discussion in the PR can be kept focused.

Comment on lines 24 to 27

// checking that explicitly enabling -sycl-opt still works
// RUN: %clang -fsycl -fsycl-targets=native_cpu -mllvm -sycl-opt -### %s 2>&1 | FileCheck -check-prefix=CHECK-OPT_ON %s
// CHECK-OPT_ON: -sycl-opt
Copy link
Contributor

Choose a reason for hiding this comment

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

This check doesn't make sense to me. We already have tests checking testing -mllvm option and I don't think this test adds any value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the check. Thank you.

@uwedolinsky
Copy link
Contributor Author

Docs changes LGTM! Maybe I just don't see the relation, but could this have been two PRs, i.e. one for -sycl-opt and one for the docs changes? If yes, we should aim for having that in the future. It makes the history cleaner and the discussion in the PR can be kept focused.

Yes, sorry, these could have been separate PRs, and I'll bare that in mind. Thank you.

Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

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

OK for driver

Copy link
Contributor

@PietroGhg PietroGhg left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@uwedolinsky
Copy link
Contributor Author

Hello @intel/llvm-gatekeepers , this PR looks ready to merge. Thank you!

@steffenlarsen steffenlarsen merged commit 3fe77b9 into intel:sycl Nov 29, 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.

5 participants