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

svm: finish all queues in svm_pointer_passing #2209

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

karolherbst
Copy link
Contributor

The svm_pointer_passing test has unflushed buffer unmap commands queued, which a runtime might process after the clSVMFree calls at the end of the test (through implicit flushing when destroying the queues at e.g. program exit handlers).

This is only an issue when running the test with multiple devices.

However I think this was caused by a simple typo given the clFinish was simply in the wrong block.

The `svm_pointer_passing` test has unflushed buffer unmap commands queued,
which a runtime might process after the `clSVMFree` calls at the end of
the test (through implicit flushing when destroying the queues at e.g.
program exit handlers).

This is only an issue when running the test with multiple devices
Copy link
Contributor

@bashbaug bashbaug left a comment

Choose a reason for hiding this comment

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

LGTM. Reusing the cmdq variable inside of the loop is a bit confusing, but this isn't something added in this PR, and I do think all of the queues are properly finished now.

@bashbaug
Copy link
Contributor

bashbaug commented Jan 7, 2025

Merging as discussed in the January 7th teleconference.

@bashbaug bashbaug merged commit 34feb6e into KhronosGroup:main Jan 7, 2025
9 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.

2 participants