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

Command buffer wait_for_sec_queue_event subtest, call clFinish in the correct order. #1758

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

AhmedAmraniAkdi
Copy link
Contributor

queue has a command that depends on a command that resides in queue_sec, calling clFinish(queue) before clFinish(queue_sec) causes the test to hang as the queue_sec command never got a chance to finish.

…h in the correct order.

queue has a command that depends on a command that resides in queue_sec, calling clFinish(queue) before clFinish(queue_sec) causes the test to hang as the queue_sec command never got a chance to finish.
@AhmedAmraniAkdi
Copy link
Contributor Author

It says build macos-latest failed, but I am unsure the reason is my change.

@svenvh
Copy link
Member

svenvh commented Jun 7, 2023

It says build macos-latest failed, but I am unsure the reason is my change.

That should be fixed by #1756

EwanC
EwanC previously approved these changes Jun 7, 2023
Copy link
Contributor

@EwanC EwanC left a comment

Choose a reason for hiding this comment

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

LGTM

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.

This change isn't bad but I do wonder if it is defeating the purpose of the test. Would it be better to at least call clFlush(queue) first, before calling clFinish(queue_sec)? So we'd have:

        error = clFlush(queue);
        test_error(error, "clFlush failed");

        error = clFinish(queue_sec);
        test_error(error, "clFinish failed");

        error = clFinish(queue);
        test_error(error, "clFinish failed");

@AhmedAmraniAkdi
Copy link
Contributor Author

Yes, that works too as clFlush is not blocking and it also goes more "in line" with what the test was doing. Should I modify the commit with your suggestion then?

@lakshmih
Copy link
Contributor

lakshmih commented Aug 9, 2023

Looks good.

@EwanC
Copy link
Contributor

EwanC commented Aug 10, 2023

Yes, that works too as clFlush is not blocking and it also goes more "in line" with what the test was doing. Should I modify the commit with your suggestion then?

I'd also prefer the patch was updated to this suggestion

@AhmedAmraniAkdi
Copy link
Contributor Author

Updated PR.

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.

This change works for me - thanks!

Do we need any further discussion or spec clarifications to document whether or why the previous code was incorrect?

@bashbaug
Copy link
Contributor

bashbaug commented Sep 5, 2023

Merging as discussed in the September 5th teleconference.

@bashbaug bashbaug merged commit d20de8d into KhronosGroup:main Sep 5, 2023
6 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.

6 participants