From 7eee5883a38210390137dfdf4a5c6ce3286905e6 Mon Sep 17 00:00:00 2001 From: Naim <110031745+naimnv@users.noreply.github.com> Date: Thu, 7 Mar 2024 06:13:39 +0100 Subject: [PATCH] Remove CUGRAPH_EXPECTS(!(this->has_edge_mask()), unimplemented.) (#4214) Remove CUGRAPH_EXPECTS(!(this->has_edge_mask()), unimplemented.) Authors: - Naim (https://github.com/naimnv) Approvers: - Seunghwa Kang (https://github.com/seunghwak) - Chuck Hastings (https://github.com/ChuckHastings) URL: https://github.com/rapidsai/cugraph/pull/4214 --- cpp/src/structure/graph_view_impl.cuh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/cpp/src/structure/graph_view_impl.cuh b/cpp/src/structure/graph_view_impl.cuh index 623e795d5b..4ee5ad5ca0 100644 --- a/cpp/src/structure/graph_view_impl.cuh +++ b/cpp/src/structure/graph_view_impl.cuh @@ -602,7 +602,6 @@ graph_view_tpartition_, this->edge_partition_segment_offsets_); } else { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); return compute_minor_degrees(handle, *this); } } @@ -622,7 +621,6 @@ graph_view_tlocal_vertex_partition_range_size()); } else { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); return compute_minor_degrees(handle, *this); } } @@ -633,7 +631,6 @@ graph_view_thas_edge_mask()), "unimplemented."); return compute_minor_degrees(handle, *this); } else { std::optional>> edge_partition_masks{ @@ -663,7 +660,6 @@ graph_view_thas_edge_mask()), "unimplemented."); return compute_minor_degrees(handle, *this); } else { return compute_major_degrees(handle, @@ -681,8 +677,6 @@ template >:: compute_max_in_degree(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - auto in_degrees = compute_in_degrees(handle); auto it = thrust::max_element(handle.get_thrust_policy(), in_degrees.begin(), in_degrees.end()); rmm::device_scalar ret(edge_t{0}, handle.get_stream()); @@ -699,8 +693,6 @@ template >:: compute_max_in_degree(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - auto in_degrees = compute_in_degrees(handle); auto it = thrust::max_element(handle.get_thrust_policy(), in_degrees.begin(), in_degrees.end()); edge_t ret{0}; @@ -713,8 +705,6 @@ template >:: compute_max_out_degree(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - auto out_degrees = compute_out_degrees(handle); auto it = thrust::max_element(handle.get_thrust_policy(), out_degrees.begin(), out_degrees.end()); rmm::device_scalar ret(edge_t{0}, handle.get_stream()); @@ -731,8 +721,6 @@ template >:: compute_max_out_degree(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - auto out_degrees = compute_out_degrees(handle); auto it = thrust::max_element(handle.get_thrust_policy(), out_degrees.begin(), out_degrees.end()); edge_t ret{0}; @@ -745,8 +733,6 @@ template >:: count_self_loops(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - return count_if_e( handle, *this, @@ -760,8 +746,6 @@ template >:: count_self_loops(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - return count_if_e( handle, *this, @@ -775,8 +759,6 @@ template >:: count_multi_edges(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - if (!this->is_multigraph()) { return edge_t{0}; } edge_t count{0}; @@ -795,8 +777,6 @@ template >:: count_multi_edges(raft::handle_t const& handle) const { - CUGRAPH_EXPECTS(!(this->has_edge_mask()), "unimplemented."); - if (!this->is_multigraph()) { return edge_t{0}; } return count_edge_partition_multi_edges(