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

Fix device CTS tests #834

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

fabiomestre
Copy link
Contributor

No description provided.

@fabiomestre fabiomestre marked this pull request as ready for review August 30, 2023 12:26
@kbenzie
Copy link
Contributor

kbenzie commented Aug 30, 2023

There doesn't appear to be anything CUDA specific in this patch, even if that's what drove these changes I'm not sure its worth calling out in this PR.

@@ -144,6 +144,8 @@ params:
[out][optional] pointer to the number of devices.
pNumDevices will be updated with the total number of devices available.
returns:
- $X_RESULT_ERROR_INVALID_SIZE:
- "`NumEntries == 0 && phDevices != NULL`"
Copy link
Contributor

Choose a reason for hiding this comment

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

The description for NumEntries should be updated too since it says that it will return UR_RESULT_ERROR_INVALID_VALUE in this case

Copy link
Contributor Author

@fabiomestre fabiomestre Aug 30, 2023

Choose a reason for hiding this comment

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

Actually, I went with INVALID_SIZE because that's what the test was using. But on second thought, maybe INVALID_VALUE is better?

Copy link
Contributor

Choose a reason for hiding this comment

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

It would align with the OpenCL error code. What do other entry points specify for this type of error case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is only 2 other entries that are equivalent. urAdaptersGet and urPlatformsGet. Both are using INVALID_SIZE. I guess I will keep the change to INVALID_SIZE for consistency.

Copy link
Contributor

Choose a reason for hiding this comment

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

Consistency is best, yup.

Copy link
Contributor

Choose a reason for hiding this comment

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

Having the same fault on HIP so 👍 from me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍

@fabiomestre fabiomestre changed the title Fix device CTS tests on CUDA Fix device CTS tests Aug 30, 2023
@fabiomestre fabiomestre merged commit a8e4955 into oneapi-src:main Aug 31, 2023
28 checks passed
hdelan pushed a commit to hdelan/unified-runtime that referenced this pull request Sep 11, 2023
omarahmed1111 pushed a commit to omarahmed1111/unified-runtime that referenced this pull request Nov 10, 2023
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.

5 participants