-
Notifications
You must be signed in to change notification settings - Fork 116
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
base: main
Are you sure you want to change the base?
Conversation
martygrant
commented
Nov 4, 2024
- 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
reinterpret_cast<ur_bool_t *>(data.data()); | ||
ASSERT_TRUE(returned_empty_queue); | ||
break; | ||
} | ||
default: | ||
break; |
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.
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?
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.
@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
fbe7927
to
ea4c70e
Compare
- 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.
ea4c70e
to
c8089fa
Compare