We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4e454 commit 5c42c6cCopy full SHA for 5c42c6c
sycl/source/detail/device_global_map_entry.cpp
@@ -60,8 +60,8 @@ bool DeviceGlobalMapEntry::isAvailableInContext(const context_impl *CtxImpl) {
60
}
61
62
bool DeviceGlobalMapEntry::isProfileCounter() {
63
- const std::string CounterPrefix = "__profc_";
64
- return MUniqueId.substr(0, CounterPrefix.size()) == CounterPrefix;
+ constexpr std::string_view CounterPrefix = "__profc_";
+ return std::string_view{MUniqueId}.substr(0, CounterPrefix.size()) == CounterPrefix;
65
66
67
#ifdef _MSC_VER
0 commit comments