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

Improvements to align CTS and Spec for Queue #2282

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

martygrant
Copy link
Contributor

  • Add UR_RESULT_ERROR_INVALID_NULL_HANDLE/POINTER for urQueueCreateWithNativeHandleTest
  • Add tests for urQueueCreateWithNativeHandleTest for creating an owned/unowned native queue handle
  • Removed urQueueGetInfoDeviceQueueTestWithInfoParam as it was redundant - already being checked with urQueueGetInfoTestWithInfoParam
  • Added missing enum queries for urQueueGetInfoTestWithInfoParam

@github-actions github-actions bot added the conformance Conformance test suite issues. label Nov 4, 2024
@martygrant martygrant marked this pull request as ready for review November 7, 2024 08:52
@martygrant martygrant requested a review from a team as a code owner November 7, 2024 08:52
reinterpret_cast<ur_bool_t *>(data.data());
ASSERT_TRUE(returned_empty_queue);
break;
}
default:
break;
Copy link
Contributor

@RossBrunton RossBrunton Nov 11, 2024

Choose a reason for hiding this comment

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

If we intend to check every info type (or at the very least, call attention to every info type), should we not return an error here rather than silently doing nothing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RossBrunton I committed these changes before your comment here #2272 (comment) so I just reworked this PR to make the tests separate. I'll do the same for future PRs on the remaining CTS areas

@martygrant martygrant force-pushed the martin/queue-cts-spec-gap branch 5 times, most recently from fbe7927 to ea4c70e Compare November 14, 2024 17:25
- Add UR_RESULT_ERROR_INVALID_NULL_HANDLE/POINTER for urQueueCreateWithNativeHandleTest
- Add tests for urQueueCreateWithNativeHandleTest for creating an owned/unowned native queue handle
- Removed urQueueGetInfoDeviceQueueTestWithInfoParam as it was redundant - already being checked with urQueueGetInfoTestWithInfoParam
- Added missing enum queries for urQueueGetInfoTestWithInfoParam
…switch statement in one test.

Remove tests for owned/unowned native queue, as it is being handled in oneapi-src#2193.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conformance Conformance test suite issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants