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

support mixed in-order recording and replay #132

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bashbaug
Copy link
Owner

see: KhronosGroup/OpenCL-Docs#1292

Adds support for recording a command buffer with an in-order queue, and replaying it with an out-of-order queue. In this case, explicit dependencies are added (via command queue barriers), to enforce the in-order behavior.

I will keep this as a draft until the spec changes are merged, at which time the reported extension version will need to be updated.

We require newer headers anyhow, so we may as well remove these
ifdefs to clean up the code a bit.
@bashbaug bashbaug marked this pull request as draft January 19, 2025 23:03
@EwanC
Copy link
Contributor

EwanC commented Feb 5, 2025

Hey Ben, have you tried this out with KhronosGroup/OpenCL-CTS#2230 ? The test_queue_substite_out_of_order test I added should stress the case of recording an in-order queue, and replaying it with an out-of-order queue.

@bashbaug
Copy link
Owner Author

bashbaug commented Feb 5, 2025

Hey Ben, have you tried this out with KhronosGroup/OpenCL-CTS#2230 ?

I hadn't - but I just gave this a try and the new tests are passing 👍

I'll leave a few comments on the PR and hopefully it can be merged soon. Thanks!

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