Skip to content

Commit

Permalink
Filter out fence nested into parallel for view construct and print fe…
Browse files Browse the repository at this point in the history
…nce name
  • Loading branch information
dalg24 committed Aug 4, 2024
1 parent c88e282 commit aa95292
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ extern "C" void kokkosp_begin_fence(char const *fenceName, uint32_t deviceID,
}

std::lock_guard lock(current_mutex);
if (!current.empty()) {
// gives false positives
// std::cerr << "fence \"" << fenceName << "\" within parallel region \""
// << get_event(*current.begin()) << "\"\n";
if (!current.empty() && (get_event(*fenceID) != "Foo") &&
(get_event(*fenceID) !=
"Kokkos::Impl::ViewValueFunctor: View init/destroy fence")) {
if (auto lbl = get_substr(get_event(*current.begin()),
"Kokkos::View::destruction [", "]")) {
std::cerr << "view of views \"" << *lbl
<< "\" not properly cleared this fence will hang\n";
<< "\" not properly cleared this fence labelled \"" << fenceName
<< "\" will hang\n";
}
}
}
Expand Down

0 comments on commit aa95292

Please sign in to comment.