From a8372b34e34ae0d9b3d92c0f7b01f3303cccafbf Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Tue, 6 Aug 2024 17:57:00 -0400 Subject: [PATCH] Fixup Threads backend does not label scratch pad allocs like other host backends --- debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp b/debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp index 375fc06bd..2a395d6dc 100644 --- a/debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp +++ b/debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp @@ -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 get_substr(std::string const &str,