-
Notifications
You must be signed in to change notification settings - Fork 199
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
Add acquire/release #1899
Conversation
a19c521
to
418a299
Compare
nullptr); | ||
test_error_and_cleanup(err, CLEANUP, | ||
"Failed to acquire buffers"); | ||
err = clEnqueueAcquireExternalMemObjectsKHRptr( |
There was a problem hiding this comment.
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.
Responded to review comments, and moved acquire/release to precede/follow the clEnqueueNDRangeKernel command that uses the relevant mem-objects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Merging as discussed in the May 21st teleconference. |
Add acquire/release commands where appropriate. This is related to 1886.