Skip to content

Commit

Permalink
Add missing cugraph-ops conditional (#3270)
Browse files Browse the repository at this point in the history
This change is necessary for compilation with `USE_CUGRAPH_OPS=OFF`.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Chuck Hastings (https://github.com/ChuckHastings)

URL: #3270
  • Loading branch information
vyasr authored Feb 27, 2023
1 parent e1de2f5 commit 08ae65a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/src/prims/per_v_random_select_transform_outgoing_e.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ rmm::device_uvector<edge_t> get_sampling_index_without_replacement(
raft::random::RngState& rng_state,
size_t K)
{
#ifndef NO_CUGRAPH_OPS
edge_t mid_partition_degree_range_last = static_cast<edge_t>(K * 10); // tuning parameter
assert(mid_partition_degree_range_last > K);
size_t high_partition_over_sampling_K = K * 2; // tuning parameter
Expand Down Expand Up @@ -640,6 +641,9 @@ rmm::device_uvector<edge_t> get_sampling_index_without_replacement(
frontier_degrees.shrink_to_fit(handle.get_stream());

return sample_nbr_indices;
#else
CUGRAPH_FAIL("unimplemented.");
#endif
}

template <bool incoming,
Expand Down

0 comments on commit 08ae65a

Please sign in to comment.