Skip to content

Commit

Permalink
Fixup Threads backend does not label scratch pad allocs like other ho…
Browse files Browse the repository at this point in the history
…st backends
  • Loading branch information
dalg24 committed Aug 6, 2024
1 parent 9e7a2d2 commit a8372b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ bool ignore_fence(std::string_view s) {
bool ignore_alloc(std::string_view s) {
// TODO replace poor man's starts_with and ends_with when C++20 is available
return (s.find("Kokkos::") == 0 &&
s.rfind("::scratch_mem") == s.length() - 13);
s.rfind("::scratch_mem") == s.length() - 13) ||
(s == "Kokkos::thread_scratch");
}

std::optional<std::string> get_substr(std::string const &str,
Expand Down

0 comments on commit a8372b3

Please sign in to comment.