From 4ab43a249e0d4c1dbb51cca52ce1bbb0cd1dd322 Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Tue, 6 Aug 2024 18:33:47 -0400 Subject: [PATCH] Use Christians big hammer --- debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 d8ba1f9c4..34db33e36 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 @@ -57,12 +57,7 @@ bool ignore_fence(std::string_view s) { (s == "Kokkos::ThreadsInternal::fence: Unnamed Instance Fence"); } -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 == "Kokkos::thread_scratch"); -} +bool ignore_alloc(std::string_view s) { return (s.find("Kokkos::") == 0); } std::optional get_substr(std::string const &str, std::string_view prefix,