Conversation
|
Kindly pinging for reviews, @TApplencourt @gmlueck @tahonermann Thanks! |
|
Hi, Sorry for the late reply. Amazing, thanks a lot! We will try to discuss it soon during our weekly call. I will let you know ASAP, Regards, |
| friend bool operator==(const T &lhs, const T &rhs); | ||
|
|
||
| friend bool operator!=(const T& lhs, const T& rhs) { /* ... */ } | ||
| friend bool operator!=(const T &lhs, const T &rhs); |
There was a problem hiding this comment.
Our editorial style is to put the space after the &, not before. So the original spacing was correct. This line should be:
| friend bool operator!=(const T &lhs, const T &rhs); | |
| friend bool operator!=(const T& lhs, const T& rhs); |
The synopsis in the text has the correct format. Could you change the spacing for the other declarations in this header and also "common-reference.h" to match this style?
There was a problem hiding this comment.
I've changed this to the preferred editorial style. A small observation about this, I believe that the repository could benefit from a .clang-format file, just so that source code files that are used as reference can be modified with a higher confidence that coding style will remain consistent, don't think a CI job or anything should be needed to enforce it necessarely, but it would bring more convenience.
Anyways, hope it's good as is
There was a problem hiding this comment.
@TApplencourt tried this once, but it changed a bunch of other formatting in ways we didn't like. Maybe it's possible to use clang-format in a way that doesn't do this, but we didn't discover that way.
In any case, thanks for the updates!
There was a problem hiding this comment.
Yes, I tried but I failed so we removed it. But I guess now with AI, maybe easier to make it iterate over all the 1000 clang-format combination to find the one who doesn't change too much our current code :)
Thanks again!
LGTM. So our next discussion will be:
- Should be back port this to SYCL 2020
- What whould be we do will all the
noexceptfunction who have precondition
There was a problem hiding this comment.
Should be back port this to SYCL 2020
We looked at the DPC++ implementation, and we do not see any problem add these noexcept to SYCL 2020. Therefore, we'd be OK adopting this as a clarification / errata.
There was a problem hiding this comment.
We looked at the DPC++ implementation, and we do not see any problem add these
noexceptto SYCL 2020. Therefore, we'd be OK adopting this as a clarification / errata.
Does this require for this PR to be duplicated on the SYCL-2020 branch?
Also, out of curiosity, when is the expected release of SYCL-Next? Correct me if I am wrong, but SYCL-Next isn't just the next revision update for SYCL-2020, right? It's a separate set of specifications that up to date SYCL implementations will need to follow in the future?
There was a problem hiding this comment.
Does this require for this PR to be duplicated on the SYCL-2020 branch?
No. If the WG approves this for SYCL 2020, I will make a separate PR to the SYCL 2020 branch.
There was a problem hiding this comment.
It's a separate set of specifications that up to date SYCL implementations will need to follow in the future?
Exactly. Like a new version. In a new SYCL version, we are allowed to do some breaking change (that we will try to minimize ofc), and where some deprecated feature will be removed, etc
In new rev, we just "back-port" bug fixes.
| ~T(); | ||
|
|
||
| ... | ||
| // ... |
There was a problem hiding this comment.
Thanks! : ) I also prefer when our .h are valid c++
|
Is there anything else required from my side for this PR to be merged? I see that there is a workflow waiting for approval. Really happy to contribute to SYCL-Docs, if I see any other possible improvements or inconsistencies, I will file an issue and PR! Thanks for the approvals UPD: didn't read latest comments, I'll wait for you guys to have the meeting and discuss it, no rush from my side! Out of curiosity, is this a public meeting? |
Amazing! Thanks again, always good to have another pair of eyes for things we missed ! :)
Sadly, no. It's restricted to the member of Khronos :( But your company are most than welcome to join : ) (https://www.khronos.org/members/). We have also a SYCL Advisory Panel this one is free to join if you are interested. |
I am contributing independently to SYCL, so I will try to join / request to join the SYCL Advisory Panel! Thanks for letting me know! |
|
SYCL Next: No objection so we can merge the PR
|
|
Happy to hear this :) About CTS change, I'd be more than happy to look into this, might take a bit in order to get familiar enough to add the checks properly but I hope to contribute more in the future so I wouldn't mind learning. Is it expected / OK if I take the responsability of adding the CTS checks? |
fixes #1042
This PR adds the explicit
noexceptto the following sections:for the following functions:
The PR also contains some additional changes to make the tables prettier, it fixes alignment and just looks better overall but I can remove these changes / commit them for another PR if needed, otherwise, if these additional changes are welcomed, I'd also like to recommend either the removal or addition for both tables to contain the comments:
I've done some analysis on the classes that use both by-value and by reference semantics and I found none that overwrite the behavior of the move constructor & assignment operator