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

Add acquire/release #1899

Conversation

joshqti
Copy link
Contributor

@joshqti joshqti commented Feb 24, 2024

Add acquire/release commands where appropriate. This is related to 1886.

@joshqti joshqti force-pushed the fix_cross_context_signals_acquire_release_only branch from a19c521 to 418a299 Compare February 24, 2024 00:13
nullptr);
test_error_and_cleanup(err, CLEANUP,
"Failed to acquire buffers");
err = clEnqueueAcquireExternalMemObjectsKHRptr(
Copy link
Contributor

Choose a reason for hiding this comment

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

What if these cl_mems are acquired on cmd_queue2 before kernel that uses these on cmd_queue1 which may make access to these on cmd_queue1 invalid. Also, if cmd_queue1 has already acquired these, then acquiring them on cmd_queue2 without releasing from queue2 may be illegal?

to the enqueue NDRange kernel that uses them.
@joshqti
Copy link
Contributor Author

joshqti commented Mar 18, 2024

Responded to review comments, and moved acquire/release to precede/follow the clEnqueueNDRangeKernel command that uses the relevant mem-objects.

Copy link
Contributor

@nikhiljnv nikhiljnv left a comment

Choose a reason for hiding this comment

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

LGTM.

@bashbaug
Copy link
Contributor

Merging as discussed in the May 21st teleconference.

@bashbaug bashbaug merged commit 4fceb78 into KhronosGroup:main May 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants