-
Notifications
You must be signed in to change notification settings - Fork 787
Cast Integer to enumeration type using static_cast for KernelNameType #1895
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
Conversation
…defined as templated function object where the template parameter is of enum type (scoped and unscoped). Eg: template <> struct KernelInfo<::dummy_functor_1<(no_namespace_int)0>> to template <> struct KernelInfo<::dummy_functor_1<static_cast<no_namespace_int>(0)>>
…ype_static_cast
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.
LGTM
Error does not seem related to patch.
@bader is this a known issue? |
Could you please follow these guidelines when writing commit message in the future? https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53 |
Tried rebuilding the failed check and got : |
Oh strange. I don't think I have write access too but I am able to rebuild. Can you make sure you are signed in? Top right corner will say 'Anonymous' if you are not signed in. Maybe that is issue? |
Thanks. I had to authorize bb-sycl to access my github account. |
This looks like CI issue to me:
Please report such errors to the CI team. |
…on (#1895) Decoration's handling is done alike to other decorations. However, we should preserve the braces so we save the input string after reverse translation. Original commit: KhronosGroup/SPIRV-LLVM-Translator@84e48b0
For specializations of KernelInfo for kernel function types, cast Integer to Enumeration type using static_cast.
Eg:
template <> struct KernelInfo<::dummy_functor_1<(no_namespace_int)0>>
totemplate <> struct KernelInfo<::dummy_functor_1<static_cast<no_namespace_int>(0)>>
Issue# : #1784