-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Handle KernelName templated using type with enum template argument #1780
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
Please note: Enum used to template a 'template template type argument' has not been handled yet. I will open a second PR (or add a second commit here) for that. I am still working on it but thought I could get feedback on this patch for now. |
Haven't looked at the code yet, but based on the commit message, why is this doing 2 different tasks? |
I noticed the second issue while working on the first and just fixed it along with it. Should I open 2 different PRs or upload it as 2 separate commits? |
I'm on the fence, I'd have originally suggested doing it as 2 separate PRs (since they become quick/easy to review). That said, now that its up, I'd probably be satisfied if you were to reword the message to simply state why that was required to accomplish the task. |
I don't think this was required to accomplish the task. I'll check and move it out into a separate PR |
using a type which is in turn templated using enum. Signed-off-by: Elizabeth Andrews <elizabeth.andrews@intel.com>
5cd3667
to
964bb7b
Compare
Removed changes related to global specifier. Will upload this as second PR shortly. |
@@ -155,3 +182,5 @@ int main() { | |||
// CHECK: template <> struct KernelInfo<::dummy_functor_6<(unscoped_enum)0>> | |||
// CHECK: template <> struct KernelInfo<::dummy_functor_7<::no_namespace_int>> | |||
// CHECK: template <> struct KernelInfo<::dummy_functor_7<::internal::namespace_short>> | |||
// CHECK: template <> struct KernelInfo<::T1<::T2<(type_argument_template_enum::E)0>>> |
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.
This inconsistency is fixed in the followup patch, right?
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.
Yes.
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.
Test fails seem unrelated.
@vladimirlaz, @romanovvlad, do you know what might be the reason of "unrelated test fails"? |
Attaching logs for fails below. I am going to rebuild the test to check if it is flakey. FAIL__SYCL__device_event_cpp.txt |
* upstream/sycl: [SYCL] Handle KernelName templated using type with enum template argument (intel#1780) [SYCL] Fix KernelNameInfo generated for empty template parameter pack (intel#1775) [SYCL] Do not export utility methods from SYCLMemObjT (intel#1768) [Driver][SYCL] Fix processing when using -fsycl-link (intel#1765) [SYCL][NFC] Remove outdated confusing comment (intel#1779) [SYCL][NFC] Wrap classes in .cpp into a namespace to disable external linkage. (intel#1776) [SYCL][CUDA] Fixes CUDA unit tests that uses SYCL directly (intel#1763) [SYCL][Doc] Fix default device selection rules doc (intel#1769) [SYCL][CUDA] Remove pi Event Callback implementation (intel#1735) [SYCL] Throw exception if range/offset of kernel execution exceeds INT_MAX (intel#1713) [SYCL-PTX] Add intermediate layer to libclc to ease type management (intel#1712)
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com> Original commit: KhronosGroup/SPIRV-LLVM-Translator@f95a6d7
Add support to handle enums when KernelNameType is templated using a type which is in turn templated using enum.
Signed-off-by: Elizabeth Andrews elizabeth.andrews@intel.com