From 08ae65a8cadc01b8bde4b0457aa0f22a9f3f2d80 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Mon, 27 Feb 2023 11:47:39 -0800 Subject: [PATCH] Add missing cugraph-ops conditional (#3270) 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: https://github.com/rapidsai/cugraph/pull/3270 --- cpp/src/prims/per_v_random_select_transform_outgoing_e.cuh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/src/prims/per_v_random_select_transform_outgoing_e.cuh b/cpp/src/prims/per_v_random_select_transform_outgoing_e.cuh index a077476d7bb..0c06d7ac405 100644 --- a/cpp/src/prims/per_v_random_select_transform_outgoing_e.cuh +++ b/cpp/src/prims/per_v_random_select_transform_outgoing_e.cuh @@ -282,6 +282,7 @@ rmm::device_uvector 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(K * 10); // tuning parameter assert(mid_partition_degree_range_last > K); size_t high_partition_over_sampling_K = K * 2; // tuning parameter @@ -640,6 +641,9 @@ rmm::device_uvector get_sampling_index_without_replacement( frontier_degrees.shrink_to_fit(handle.get_stream()); return sample_nbr_indices; +#else + CUGRAPH_FAIL("unimplemented."); +#endif } template