Skip to content

[SYCL] Adds complex Literals support to sycl::experimental::complex #9819

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 6 commits into from
Jun 20, 2023

Conversation

abagusetty
Copy link
Contributor

@abagusetty abagusetty commented Jun 10, 2023

Adds support for complex literals to sycl::ext::oneapi::experimental::complex

Fixes #8363

@abagusetty abagusetty requested a review from a team as a code owner June 10, 2023 13:02
@abagusetty abagusetty temporarily deployed to aws June 10, 2023 13:55 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 10, 2023 14:34 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 10, 2023 16:54 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 10, 2023 17:33 — with GitHub Actions Inactive
@abagusetty abagusetty changed the title Adds complex Literals support to sycl::experimental::complex spec [SYCL] Adds complex Literals support to sycl::experimental::complex Jun 10, 2023
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.

Thanks for the contribution!

@abagusetty abagusetty requested a review from a team as a code owner June 13, 2023 15:16
@abagusetty abagusetty temporarily deployed to aws June 13, 2023 16:08 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 13, 2023 17:27 — 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.

I'm not a code owner for any of affected components, but changes LGTM, thanks!

@abagusetty abagusetty temporarily deployed to aws June 13, 2023 19:50 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 13, 2023 23:50 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 13, 2023 23:50 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 14, 2023 00:29 — with GitHub Actions Inactive
@abagusetty abagusetty temporarily deployed to aws June 14, 2023 00:29 — with GitHub Actions Inactive
@AlexeySachkov
Copy link
Contributor

@intel/dpcpp-specification-reviewers, @KseniyaTikhomirova, @intel/llvm-reviewers-runtime, could you please take a look?
@intel/sycl-language-enabling-triage: FYI

Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova left a comment

Choose a reason for hiding this comment

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

RT part LGTM

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.

Looks like a good addition!

@steffenlarsen steffenlarsen merged commit 83555cd into intel:sycl Jun 20, 2023
@abagusetty abagusetty deleted the cmplx_literals branch June 21, 2023 16:39
jle-quel added a commit that referenced this pull request Jul 21, 2023
steffenlarsen pushed a commit that referenced this pull request Jul 25, 2023
…omplex" (#10521)

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
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.

[SYCL][COMPLEX] Support for complex_literal seems to not available
5 participants