Skip to content

Commit 5d16d4e

Browse files
Apply suggestion from @steffenlarsen
Co-authored-by: Steffen Larsen <[email protected]>
1 parent 1bbdc76 commit 5d16d4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/source/detail/device_global_map_entry.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ __sycl_increment_profile_counters(std::uint64_t FnHash, std::size_t NumCounters,
8787

8888
void DeviceGlobalMapEntry::cleanupProfileCounter(context_impl *CtxImpl) {
8989
std::lock_guard<std::mutex> Lock{MDeviceToUSMPtrMapMutex};
90+
assert(isProfileCounter());
9091
const std::size_t NumCounters = MDeviceGlobalTSize / sizeof(std::uint64_t);
9192
const std::uint64_t FnHash = [&] {
9293
const auto PrefixSize = std::string{"__profc_"}.size();

0 commit comments

Comments
 (0)