Skip to content

[UR][CUDA] Mark MAX_READ_WRITE_IMAGE_ARGS as optional query#21601

Draft
kekaczma wants to merge 1 commit intosyclfrom
fix-cuda-max-read-write-image-args
Draft

[UR][CUDA] Mark MAX_READ_WRITE_IMAGE_ARGS as optional query#21601
kekaczma wants to merge 1 commit intosyclfrom
fix-cuda-max-read-write-image-args

Conversation

@kekaczma
Copy link
Contributor

CUDA does not support read-write images in the same sense as OpenCL. CUDA has separate concepts:

  • Texture objects (read-only)
  • Surface objects (read/write)

These are distinct API types and cannot be used as a single 'read-write' image argument to a kernel, which is what MAX_READ_WRITE_IMAGE_ARGS queries.

Changes:

  1. Mark MAX_READ_WRITE_IMAGE_ARGS as [optional-query] in device.yml spec
  2. Regenerate optional_queries.h to include this query in the optional list
  3. Remove CUDA from the xfail list for SuccessMaxReadWriteImageArgs test

The CUDA adapter returns UNSUPPORTED_ENUMERATION for this query, which is now correctly handled as an optional feature by the conformance test.

Test now passes for CUDA adapter.

CUDA does not support read-write images in the same sense as OpenCL.
CUDA has separate concepts:
- Texture objects (read-only)
- Surface objects (read/write)

These are distinct API types and cannot be used as a single 'read-write'
image argument to a kernel, which is what MAX_READ_WRITE_IMAGE_ARGS
queries.

Changes:
1. Mark MAX_READ_WRITE_IMAGE_ARGS as [optional-query] in device.yml spec
2. Regenerate optional_queries.h to include this query in the optional list
3. Remove CUDA from the xfail list for SuccessMaxReadWriteImageArgs test

The CUDA adapter returns UNSUPPORTED_ENUMERATION for this query, which
is now correctly handled as an optional feature by the conformance test.

Test now passes for CUDA adapter.
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.

1 participant