Skip to content

[SYCL][Doc] Fix spec for passing SPIRV struct args #12338

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

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Jan 9, 2024

SPIR-V modules may not contain a kernel argument of type OpTypeStruct. Structures are passed by reference, so the argument type is actually OpTypePointer.

Also, slightly loosen the requirements for kernel arguments that are pointers. It is technically OK to pass any pointer, though only a USM pointer can be dereferenced in the kernel.

SPIR-V modules may not contain a kernel argument of type
**OpTypeStruct**.  Structures are passed by reference, so the argument
type is actually **OpTypePointer**.

Also, slightly loosen the requirements for kernel arguments that are
pointers.  It is technically OK to pass any pointer, though only a USM
pointer can be dereferenced in the kernel.
@gmlueck
Copy link
Contributor Author

gmlueck commented Jan 19, 2024

For more information on why this change is needed, see this comment.

@gmlueck
Copy link
Contributor Author

gmlueck commented Jan 19, 2024

@intel/llvm-gatekeepers I think this is ready to merge.

@sarnex sarnex merged commit 90f03ee into intel:sycl Jan 19, 2024
@gmlueck gmlueck deleted the gmlueck/spirv-struct-args branch January 19, 2024 19:58
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.

3 participants