Skip to content
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

[SYCL][Graph] Update begin_recording and end_recording #369

Closed
wants to merge 3 commits into from

Conversation

fabiomestre
Copy link
Collaborator

@fabiomestre fabiomestre commented Apr 18, 2024

  • Removes bool return value from being_recording() and end_recording()
  • Adds missing property_list parameter to the implementation of begin_recording()

The bool return value was removed because there are no good usecases for it. The sycl way to handle errors is to return exceptions. The original reasoning to have a bool return value was that the application would likely ignore the exceptions in this entrypoint. There is no reason to believe that they will check the bool return either if it serves no practical purpose.

- Removes bool return value from being_recording() and end_recording()
- Adds missing property_list parameter to the implementation of begin_recording()
@fabiomestre fabiomestre reopened this Apr 18, 2024
@fabiomestre fabiomestre marked this pull request as ready for review April 18, 2024 15:23
Copy link
Collaborator

@EwanC EwanC left a comment

Choose a reason for hiding this comment

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

The PR description (here and in draft upstream PR) should say why we came to this decision to remove the bool return parameter.

Copy link
Collaborator

@EwanC EwanC left a comment

Choose a reason for hiding this comment

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

LGTM

@fabiomestre
Copy link
Collaborator Author

Upstream PR: intel#13480

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.

2 participants