Skip to content

[CTS] Check if images are supported before testing#1144

Merged
kbenzie merged 2 commits intooneapi-src:mainfrom
kbenzie:benie/cts-check-image-support
Apr 28, 2024
Merged

[CTS] Check if images are supported before testing#1144
kbenzie merged 2 commits intooneapi-src:mainfrom
kbenzie:benie/cts-check-image-support

Conversation

@kbenzie
Copy link
Contributor

@kbenzie kbenzie commented Dec 1, 2023

Add checks on the value of the UR_DEVICE_INFO_IMAGE_SUPPORTED device query to the image test fixtures, skip the tests if images are not supported.

@kbenzie kbenzie requested a review from a team as a code owner December 1, 2023 11:10
@kbenzie kbenzie force-pushed the benie/cts-check-image-support branch from 976032d to 6ab8c99 Compare December 1, 2023 11:18
@fabiomestre fabiomestre changed the base branch from adapters to main December 5, 2023 16:43
@fabiomestre
Copy link
Contributor

I have updated the target branch of this PR from the adapters branch to the main branch.
Development in UR is moving back to main. The adapters branch will soon be deleted.

@kbenzie kbenzie force-pushed the benie/cts-check-image-support branch from 6ab8c99 to 124d361 Compare January 23, 2024 15:10
@kbenzie kbenzie requested a review from a team as a code owner January 23, 2024 18:02
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

Attention: 109 lines in your changes are missing coverage. Please review.

Comparison is base (858225a) 15.46% compared to head (fe05045) 15.42%.
Report is 3 commits behind head on main.

Files Patch % Lines
test/conformance/enqueue/urEnqueueKernelLaunch.cpp 0.00% 47 Missing ⚠️
test/conformance/testing/include/uur/fixtures.h 0.00% 22 Missing ⚠️
test/conformance/enqueue/urEnqueueUSMMemcpy2D.cpp 0.00% 17 Missing ⚠️
test/conformance/enqueue/helpers.h 0.00% 13 Missing ⚠️
test/conformance/testing/source/utils.cpp 0.00% 10 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1144      +/-   ##
==========================================
- Coverage   15.46%   15.42%   -0.04%     
==========================================
  Files         238      238              
  Lines       33883    33977      +94     
  Branches     3747     3758      +11     
==========================================
+ Hits         5239     5241       +2     
- Misses      28593    28685      +92     
  Partials       51       51              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nrspruit nrspruit left a comment

Choose a reason for hiding this comment

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

LGTM for level-zero

@kbenzie kbenzie added the conformance Conformance test suite issues. label Jan 24, 2024
@kbenzie kbenzie force-pushed the benie/cts-check-image-support branch from 7212579 to fe05045 Compare January 29, 2024 16:18
@kbenzie kbenzie added the level-zero L0 adapter specific issues label Apr 10, 2024
Add checks on the value of the `UR_DEVICE_INFO_IMAGE_SUPPORTED` device
query to the image test fixtures, skip the tests if images are not
supported.
@kbenzie kbenzie force-pushed the benie/cts-check-image-support branch 4 times, most recently from b82d745 to ce3417d Compare April 28, 2024 10:27
The return type of the `UR_DEVICE_INFO_IMAGE_SUPPORTED` query is
`ur_bool_t` which is 1 byte. This patch removes the return type being
cast to `uint32_t` which caused the query to fail when being pass a
valid `propSize` of 1 byte.
@kbenzie kbenzie force-pushed the benie/cts-check-image-support branch from ce3417d to b1da44d Compare April 28, 2024 11:22
@kbenzie kbenzie merged commit 54829f0 into oneapi-src:main Apr 28, 2024
@kbenzie kbenzie deleted the benie/cts-check-image-support branch June 11, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conformance Conformance test suite issues. level-zero L0 adapter specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants