-
Notifications
You must be signed in to change notification settings - Fork 754
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
[SYCL][Bindless] Allow 3-channel image formats #15210
Conversation
This patch doesn't implement support for 3-channel formats, it just allows it in the spec and implementation so that a backend could implement it later (e.g. Level Zero). * Removed check from `image_descriptor::verify` * Updated spec to allow 3-channel formats * Very simple test, just verifies that CUDA backend still fails * Missing some PTX intrinsics, use `float4` instead of `float4` when compiling for CUDA. The more important part is checking that the CUDA backend throws an exception when trying to create image.
@@ -0,0 +1,109 @@ | |||
// REQUIRES: cuda |
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.
Why are you limiting this to CUDA adapter?
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.
Because it requires extra L0 work, I see you added it here: https://github.com/oneapi-src/unified-runtime/pull/2022/files
sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc
Show resolved
Hide resolved
Co-authored-by: Wenju He <[email protected]>
Currently no way to query whether a backends supports 3 channel formats.
# Conflicts: # sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc
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.
Spec changes OK.
# Conflicts: # sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc
@jbrodman are you OK with these changes? We can build on top of them later. |
@intel/llvm-gatekeepers please merge this, there will be follow up work to add queries and to properly test on L0 |
This patch doesn't implement support for 3-channel formats, it just allows it in the spec and implementation so that a backend could implement it later (e.g. Level Zero). * Removed check from `image_descriptor::verify` * Updated spec to allow 3-channel formats * Very simple test, just verifies that CUDA backend still fails * Missing some PTX intrinsics, use `float4` instead of `float4` when compiling for CUDA. The more important part is checking that the CUDA backend throws an exception when trying to create image. --------- Co-authored-by: Wenju He <[email protected]>
This patch doesn't implement support for 3-channel formats, it just allows it in the spec and implementation
so that a backend could implement it later (e.g. Level Zero).
image_descriptor::verify
float4
instead offloat4
when compiling for CUDA. The more important part is checking that the CUDA backend throws an exception when trying to create image.