Skip to content

[SYCL] Don't throw in device_impl::has #14355

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 1 commit into from
Jul 1, 2024

Conversation

aelovikov-intel
Copy link
Contributor

  1. It isn't right
  2. We need this change to get rid of deprecated
    sycl::exception::get_cl_code

1) It isn't right
2) We need this change to get rid of deprecated
   `sycl::exception::get_cl_code`
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner June 28, 2024 17:18
@bader
Copy link
Contributor

bader commented Jun 28, 2024

  1. It isn't right

Please, don't write description like that. Instead put an answer to "why it's not right?".
Our contribution guide has a link to the article with good hints on writing good commit message - https://cbea.ms/git-commit/#why-not-how.

@aelovikov-intel
Copy link
Contributor Author

I'd be happy to have a discussion with somebody who can explain to me how it might make even a tiniest bit of sense for a "has" method to throw an exception. Until then, "it isn't right" is pretty much how I see it.

Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM.

@aelovikov-intel aelovikov-intel merged commit d52d779 into intel:sycl Jul 1, 2024
15 checks passed
@aelovikov-intel aelovikov-intel deleted the no-throw-has branch July 1, 2024 15:23
KseniyaTikhomirova pushed a commit to KseniyaTikhomirova/llvm that referenced this pull request Jul 1, 2024
1) It isn't right
2) We need this change to get rid of deprecated
   `sycl::exception::get_cl_code`
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.

3 participants