-
Notifications
You must be signed in to change notification settings - Fork 796
[SYCL] Drop kernel name type backward compatibility #20713
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
base: sycl
Are you sure you want to change the base?
Conversation
| #ifndef __INTEL_PREVIEW_BREAKING_CHANGES | ||
| /// \return a string containing name of SYCL kernel. | ||
| detail::ABINeutralKernelNameStrT getKernelName(); | ||
| detail::string_view getKernelName(); |
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.
Why aren't you dropping this entire #ifndef?
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.
There's quite a lot of legacy code that would need to be removed alongside this, which I'd prefer to be done separately.
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.
I'll create a separate PR for this, to be landed before this one.
| auto [Iter, Inserted] = | ||
| m_DeviceKernelInfoMap.try_emplace(KernelNameStrT{Info.Name.data()}, Info); | ||
| auto [Iter, Inserted] = m_DeviceKernelInfoMap.try_emplace( | ||
| std::string_view{Info.Name.data()}, Info); |
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.
I had tried to add detail::string_view::operator std::string_view but it resulted in ambiguities with some comparison operators (I think). Now that we can remove old ones, maybe a better fix would be to change detail::string_view to have this conversion and rely on it happening implicitly for comparisons.
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.
Right, I recall running into something along those lines. On this line in particular though, there's no conversion to be made at all now and I just didn't catch that at first.
| #include <sycl/detail/kernel_name_str_t.hpp> | ||
| #include <sycl/kernel_bundle.hpp> | ||
|
|
||
| #include <cstring> |
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.
I'm somewhat surprised we need this.
No description provided.