Skip to content

Conversation

@jle-quel
Copy link
Contributor

Reverts #9819

As mentioned in the PR #9867, this introduction of literal operators creates some issues due to literal operators receiving arguments as long double which are not supported on device code (and only works on host side); and our worries that users will try to use it and will not understand why it does not work.

Also, user-defined literal operators should be declared with a _ prefix to not clash with the standard literal operators when using namespace std::literals.

Reverting this PR will facilitate the merge of the previously mentioned PR and have a place where the issues from this introduction are listed.

Regardless of this PR, we'd still like to have support for literal operators for complex, so if you (@abagusetty) could open up a new PR for re-introducing the literal operator if a solution can be found also to handle it in device code, that would be great!

@gmlueck @abagusetty

@jle-quel jle-quel requested review from a team as code owners July 21, 2023 13:12
@jle-quel jle-quel requested a review from steffenlarsen July 21, 2023 13:12
@jle-quel jle-quel temporarily deployed to aws July 21, 2023 13:30 — with GitHub Actions Inactive
@jle-quel jle-quel temporarily deployed to aws July 21, 2023 14:08 — with GitHub Actions Inactive
@steffenlarsen
Copy link
Contributor

Precommit failure seems to be an infrastructure hiccup.

@steffenlarsen steffenlarsen merged commit fc6d573 into sycl Jul 25, 2023
@jle-quel jle-quel deleted the revert-9819-cmplx_literals branch July 25, 2023 12:54
mdtoguchi pushed a commit to mdtoguchi/llvm that referenced this pull request Oct 18, 2023
…omplex" (intel#10521)

Reverts intel#9819

As mentioned in the PR intel#9867, this
introduction of literal operators creates some issues due to literal
operators receiving arguments as `long double` which are not supported
on device code (and only works on host side); and our worries that users
will try to use it and will not understand why it does not work.

Also, user-defined literal operators should be declared with a `_`
prefix to not clash with the standard literal operators when `using
namespace std::literals`.

Reverting this PR will facilitate the merge of the previously mentioned
PR and have a place where the issues from this introduction are listed.

Regardless of this PR, we'd still like to have support for literal
operators for complex, so if you (@abagusetty) could open up a new PR
for re-introducing the literal operator if a solution can be found also
to handle it in device code, that would be great!

@gmlueck @abagusetty
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.

4 participants