Skip to content

Conversation

@sergey-semenov
Copy link
Contributor

No description provided.

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);
Copy link
Contributor

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.

Copy link
Contributor Author

@sergey-semenov sergey-semenov Nov 21, 2025

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>
Copy link
Contributor

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.

@againull
Copy link
Contributor

KernelCompiler/sycl_device_globals failure on CUDA is known: #20408

@againull againull merged commit 3b227b1 into intel:sycl Nov 26, 2025
27 of 28 checks passed
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