Skip to content

Conversation

AlexeySachkov
Copy link
Contributor

This is joined cherry-pick of #20187 and #20123


[SYCL] Allow free function kernel args be templated on integer expressions (#20187)

constexpr variables are not forward-declarable so if one is used as a
template parameter of a free function kernel argument, we cannot
reference the variable, but must inline the value into the integration
header.


[SYCL] Fix error with type aliases used as free function kernel args (#20123)

This PR fixes type name that is being printed as free function kernel
argument type in its forward-declaration in the integration header.

Before the change, we used the original argument type name, which could
be an alias - this patch makes use of the canonical type's name to make
sure that all type aliases are "unwrapped".

…ntel#20123)

This PR fixes type name that is being printed as free function kernel
argument type in its forward-declaration in the integration header.

Before the change, we used the original argument type name, which could
be an alias - this patch makes use of the canonical type's name to make
sure that all type aliases are "unwrapped".
…sions (intel#20187)

`constexpr` variables are not forward-declarable so if one is used as a
template parameter of a free function kernel argument, we cannot
reference the variable, but must inline the value into the integration
header.
@AlexeySachkov
Copy link
Contributor Author

Unexpectedly Passed Tests (1):
  SYCL :: KernelAndProgram/kernel-bundle-get-kernel-ids.cpp

That is a known XPASS, I will proceed with merge

@AlexeySachkov AlexeySachkov merged commit 93e7577 into intel:sycl-rel-6_3 Sep 30, 2025
43 of 53 checks passed
@AlexeySachkov AlexeySachkov deleted the private/asachkov/cherry-pick-free-function-kernel-fixes branch September 30, 2025 16:27
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.

2 participants