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

Added new cl_khr_semaphore tests to verify clEnqueueWaitSemaphoresKHR negative results #1965

Conversation

shajder
Copy link
Contributor

@shajder shajder commented May 21, 2024

According to work plan from #1691

After consultations with @bashbaug I skipped this case:

CL_INVALID_VALUE if any of the semaphore objects specified by sema_objects requires a semaphore payload and sema_payload_list is NULL

// Wait semaphore
err = clEnqueueWaitSemaphoresKHR(queue, 1, semaphore, nullptr, 1,
&user_event, nullptr);
test_failure_error(err, CL_INVALID_EVENT_WAIT_LIST,
Copy link
Contributor

Choose a reason for hiding this comment

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

As per spec, shouldn't this be CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected, thanks!

Copy link
Contributor

@paulfradgley paulfradgley left a comment

Choose a reason for hiding this comment

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

Looks good to me.

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

@neiltrevett neiltrevett merged commit 340b7c9 into KhronosGroup:main Jul 2, 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.

6 participants