Skip to content

Commit bc05c64

Browse files
[SYCL] Make sycl::kernel_id owns MName instead of using string_view (#18696)
In 8a5462d for preview the type was changed to string_view, but in some scenario memory for kernel name is released before kernel_id is used. In common case kernel_id_impl is created from ProgramManager::addImages(), i.e. not on hot path.
1 parent cc21caf commit bc05c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/kernel_id_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class kernel_id_impl {
3838
const char *get_name() { return MName.data(); }
3939

4040
private:
41-
KernelNameStrT MName;
41+
std::string MName;
4242
};
4343

4444
} // namespace detail

0 commit comments

Comments
 (0)