Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix false C++ HITS test failure on H100 #4352

Merged
4 changes: 2 additions & 2 deletions cpp/tests/link_analysis/hits_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ class Tests_Hits : public ::testing::TestWithParam<std::tuple<Hits_Usecase, inpu
h_cugraph_hits = cugraph::test::to_host(handle, d_hubs);
}
handle.sync_stream();
auto threshold_ratio = 1e-3;
auto threshold_ratio = 2e-3;
auto threshold_magnitude =
1e-6; // skip comparison for low hits vertices (lowly ranked vertices)
2e-6; // skip comparison for low hits vertices (lowly ranked vertices)
auto nearly_equal = [threshold_ratio, threshold_magnitude](auto lhs, auto rhs) {
return std::abs(lhs - rhs) <=
std::max(std::max(lhs, rhs) * threshold_ratio, threshold_magnitude);
Expand Down
4 changes: 2 additions & 2 deletions cpp/tests/link_analysis/mg_hits_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ class Tests_MGHits : public ::testing::TestWithParam<std::tuple<Hits_Usecase, in
auto h_mg_aggregate_hubs = cugraph::test::to_host(*handle_, d_mg_aggregate_hubs);
auto h_sg_hubs = cugraph::test::to_host(*handle_, d_sg_hubs);

auto threshold_ratio = 1e-3;
auto threshold_ratio = 2e-3;
auto threshold_magnitude =
1e-6; // skip comparison for low Hits verties (lowly ranked vertices)
2e-6; // skip comparison for low Hits verties (lowly ranked vertices)
auto nearly_equal = [threshold_ratio, threshold_magnitude](auto lhs, auto rhs) {
return std::abs(lhs - rhs) <
std::max(std::max(lhs, rhs) * threshold_ratio, threshold_magnitude);
Expand Down
Loading