Skip to content

[SYCL][NFC] Remove more explicit "cl::" references #6507

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 3 commits into from
Aug 3, 2022

Conversation

aelovikov-intel
Copy link
Contributor

Previous patch was implemented by splitting off piece of a bigger patch by
completely eliminating "cl" namespace and then addressing the local failures.
Local testing didn't cover all possible platforms so these occurrences were left
untouched.

This is a wider application of grep/sed, but it's still not complete as some
instances of "cl" namespace references cannot be eliminated in an NFC
change (e.g. everything affecting/affected by mangling as in clang or some
tools). The reason I'm committing these changes separately is to ease the review
of the actual non-NFC PR later.

Previous patch was implemented by splitting off piece of a bigger patch by
completely eliminating "cl" namespace and then addressing the local failures.
Local testing didn't cover all possible platforms so these occurrences were left
untouched.

This is a wider application of grep/sed, but it's still not complete as some
instances of "cl" namespace references cannot be eliminated in an NFC
change (e.g. everything affecting/affected by mangling as in clang or some
tools). The reason I'm committing these changes separately is to ease the review
of the actual non-NFC PR later.
@aelovikov-intel aelovikov-intel requested review from a team as code owners August 1, 2022 21:40
@@ -27,7 +27,7 @@ NOTE: Khronos(R) is a registered trademark and SYCL(TM) and SPIR(TM) are tradema

NOTE: This document is better viewed when rendered as html with asciidoctor. GitHub does not render image icons.

This document describes an extension that introduces the `cl::sycl::intel::atomic_ref` class, which exposes additional functionality aligned with the +std::atomic_ref+ class from {cpp}20.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably keep references to SYCL 1.2.1 unchanged, it seems cl::sycl is accurate in these cases.

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 wasn't sure how to proceed with those actually. The code that we have in-tree wouldn't have "cl::", so having docs reference it isn't good either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In other words, are those docs "abstract" and (from the technical perspective) should have lived in the khronos repo, or are they the reflection of our actual implementation?

Copy link
Contributor

Choose a reason for hiding this comment

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

All docs changes are generally good I think! In supported extensions we should use sycl:: and that will match implementation. I'm just taking about a few very specific references (in deprecated extensions docs) to SYCL 1.2.1 standard where namespaces are cl::sycl in fact. I had to be more specific in my references.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with this. It would be good to retain cl:: references in specific instances when referring to 1.2.1 specs.

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 had a chat with Pavel yesterday, decided to revert the docs changes under "deprecated/" folder completely. I had to re-focus on another regression, will upload the change once I'll return to this work.

smaslov-intel
smaslov-intel previously approved these changes Aug 2, 2022
Those are written against SYCL 1.2.1 and our codebase isn't 1.2.1
already.
Copy link
Contributor

@smanna12 smanna12 left a comment

Choose a reason for hiding this comment

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

FE changes LGTM

@pvchupin pvchupin merged commit 433ea5c into intel:sycl Aug 3, 2022
raaiq1 pushed a commit to raaiq1/llvm that referenced this pull request Aug 4, 2022
Previous patch was implemented by splitting off piece of a bigger patch by
completely eliminating "cl" namespace and then addressing the local failures.
Local testing didn't cover all possible platforms so these occurrences were left
untouched.

This is a wider application of grep/sed, but it's still not complete as some
instances of "cl" namespace references cannot be eliminated in an NFC
change (e.g. everything affecting/affected by mangling as in clang or some
tools). The reason I'm committing these changes separately is to ease the review
of the actual non-NFC PR later.
@aelovikov-intel aelovikov-intel deleted the more-cl branch August 25, 2022 20:10
al42and added a commit to al42and/llvm that referenced this pull request Jan 26, 2023
After intel#6507, the contribution guidelines became confusing.
bader pushed a commit that referenced this pull request Jan 26, 2023
After #6507, the contribution guidelines became confusing.
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