Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sycl/source/detail/device_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ class device_impl {
.value_or(ext::oneapi::experimental::architecture::unknown);
} else if (is_gpu() && (backend::ext_oneapi_cuda == CurrentBackend ||
backend::ext_oneapi_hip == CurrentBackend)) {
auto MapArchIDToArchName = [&](const char *arch) {
auto MapArchIDToArchName = [&](std::string_view arch) {
for (const auto &Item : NvidiaAmdGPUArchitectures) {
if (std::string_view(Item.first) == arch)
return Item.second;
Expand All @@ -1990,7 +1990,7 @@ class device_impl {
get_info_impl<UrInfoCode<info::device::version>::value>();
std::string_view DeviceArchSubstr =
std::string_view{DeviceArch}.substr(0, DeviceArch.find(":"));
return MapArchIDToArchName(DeviceArchSubstr.data());
return MapArchIDToArchName(DeviceArchSubstr);
} else if (is_cpu() && backend::opencl == CurrentBackend) {
return LookupIPVersion(IntelCPUArchitectures)
.value_or(ext::oneapi::experimental::architecture::x86_64);
Expand Down
Loading