Skip to content

Conversation

@Seanst98
Copy link
Contributor

@Seanst98 Seanst98 commented Sep 5, 2024

The specialised formats, CU_AD_FORMAT_{U|S}NORM_INT{8|16}X{1|2|4}, used to specify a format that is normalized, cannot be applied to images backed by USM memory, causing a failure. This commit addresses that issue by using the standard integer formats and making sure the CU_TRSF_READ_AS_INTEGER flag is set appropriately.

Another issue fixed here is that users with CUDA toolkits pre 11.5 are unable to enable normalized types due to the specialised formats being introduced in CUDA 11.5.

Associated DPC++ PR which tests for this: intel/llvm#15299

@Seanst98 Seanst98 requested a review from a team as a code owner September 5, 2024 10:13
@github-actions github-actions bot added images UR images cuda CUDA adapter specific issues labels Sep 5, 2024
@Seanst98 Seanst98 force-pushed the sean/usm-normalized-fix branch 3 times, most recently from b2ac8dc to 94cb7b0 Compare September 11, 2024 12:16
@Seanst98 Seanst98 added the ready to merge Added to PR's which are ready to merge label Sep 11, 2024
@Seanst98 Seanst98 force-pushed the sean/usm-normalized-fix branch 2 times, most recently from e354592 to 1e40614 Compare September 17, 2024 11:17
@Seanst98 Seanst98 force-pushed the sean/usm-normalized-fix branch 5 times, most recently from a706c4f to 0df25e2 Compare September 27, 2024 10:17
…nd functionality

The specialised formats, CU_AD_FORMAT_{U|S}NORM_INT{8|16}X{1|2|4},
used to specify a format that is normalized, cannot be applied to
images backed by USM memory, causing a failure. This commit
addresses that issue by using the standard integer formats and
making sure the CU_TRSF_READ_AS_INTEGER flag is set appropriately.

Another issue fixed here is that users with CUDA toolkits pre 11.5
are unable to enable normalized types due to the specialised
formats being introduced in CUDA 11.5.
@Seanst98 Seanst98 force-pushed the sean/usm-normalized-fix branch from 0df25e2 to bcf2244 Compare September 30, 2024 09:37
@aarongreig aarongreig merged commit 1f13d2c into oneapi-src:main Oct 2, 2024
74 checks passed
martygrant pushed a commit to intel/llvm that referenced this pull request Oct 3, 2024
Modify pre-existing read_norm_types test to add testing for 2D USM
bindless images.

Associated UR PR which fixes a bug in normalized USM image creation:
oneapi-src/unified-runtime#2056
@Seanst98 Seanst98 deleted the sean/usm-normalized-fix branch October 4, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda CUDA adapter specific issues images UR images ready to merge Added to PR's which are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants