Skip to content

Commit

Permalink
Use Christians big hammer
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Aug 6, 2024
1 parent d511c6b commit 4ab43a2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> get_substr(std::string const &str,
std::string_view prefix,
Expand Down

0 comments on commit 4ab43a2

Please sign in to comment.