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

[SYCL][Bindless] Allow 3-channel image formats #15210

Open
wants to merge 7 commits into
base: sycl
Choose a base branch
from

Conversation

ProGTX
Copy link
Contributor

@ProGTX ProGTX commented Aug 28, 2024

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.

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.
@ProGTX ProGTX requested a review from a team as a code owner August 28, 2024 11:06
@@ -0,0 +1,109 @@
// REQUIRES: cuda
Copy link
Contributor

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?

Copy link
Contributor Author

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

Co-authored-by: Wenju He <wenju.he@intel.com>
Currently no way to query whether a backends supports 3 channel formats.
# Conflicts:
#	sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc
Copy link
Contributor

@gmlueck gmlueck left a 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
@ProGTX
Copy link
Contributor Author

ProGTX commented Sep 13, 2024

@jbrodman are you OK with these changes? We can build on top of them later.

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.

7 participants