From 0c83b5442cdc1b546374a86feacce1e6513de46f Mon Sep 17 00:00:00 2001 From: jnke2016 Date: Thu, 31 Oct 2024 21:15:20 -0700 Subject: [PATCH] add benchmark print --- cpp/src/community/k_truss_impl.cuh | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/src/community/k_truss_impl.cuh b/cpp/src/community/k_truss_impl.cuh index 04e09999da..4dacaffd79 100644 --- a/cpp/src/community/k_truss_impl.cuh +++ b/cpp/src/community/k_truss_impl.cuh @@ -815,6 +815,7 @@ k_truss(raft::handle_t const& handle, std::cout << "k_truss took " << k_truss_ms.count() / 1000 << " milliseconds" << std::endl; std::cout << "intersection took " << intersection_ms.count()/1000 << " milliseconds" << std::endl; + std::cout << "percentage during intersection = " << ((intersection_ms.count()/1000) / (k_truss_ms.count() / 1000)) * 100 << std::endl; std::cout << "The number of edges = " << cur_undirected_graph_view.compute_number_of_edges(handle) << " and the num_iteration = " << iteration << std::endl; std::optional> edgelist_wgts{std::nullopt};