Skip to content

[SYCL][Graph] Make calling begin_recording repeatedly an error #15192

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
Aug 28, 2024

Conversation

Bensuo
Copy link
Contributor

@Bensuo Bensuo commented Aug 26, 2024

Since future features may add more properties/state to queue recording it is now an error to call begin_recording() on the same queue more than once, rather than a no-op. This is particularly relevant in scenarios where a recording queue is shared between multiple threads. Applications are now encouraged to manage queue state from a single thread rather than freely call begin/end_recording() from any thread.

  • Calling begin_recording on a recording queue is now always an error.
  • Update spec, implementation and unit tests to reflect changes.

- Calling begin_recording on a recording queue is now always an error
- Update spec, implementation and unit tests
@Bensuo Bensuo requested a review from a team as a code owner August 26, 2024 15:29
@Bensuo
Copy link
Contributor Author

Bensuo commented Aug 28, 2024

@intel/llvm-gatekeepers This should be good to merge if possible, thanks!

@martygrant martygrant merged commit e374c69 into intel:sycl Aug 28, 2024
14 checks passed
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