From 4a9218cfaf09d077f4c8336837f7dd59b301c7be Mon Sep 17 00:00:00 2001 From: Seunghwa Kang <45857425+seunghwak@users.noreply.github.com> Date: Mon, 29 Jul 2024 23:02:36 -0700 Subject: [PATCH] Fix build error with NO_CUGRAPH_OPS (#4563) Closes #4554, user bug found building cugraph 24.10 Authors: - Seunghwa Kang (https://github.com/seunghwak) Approvers: - Chuck Hastings (https://github.com/ChuckHastings) URL: https://github.com/rapidsai/cugraph/pull/4563 --- cpp/src/prims/detail/sample_and_compute_local_nbr_indices.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/prims/detail/sample_and_compute_local_nbr_indices.cuh b/cpp/src/prims/detail/sample_and_compute_local_nbr_indices.cuh index 64b6aab9baf..43415ba6df4 100644 --- a/cpp/src/prims/detail/sample_and_compute_local_nbr_indices.cuh +++ b/cpp/src/prims/detail/sample_and_compute_local_nbr_indices.cuh @@ -1573,11 +1573,11 @@ uniform_sample_and_compute_local_nbr_indices( size_t K, bool with_replacement) { + using edge_t = typename GraphViewType::edge_type; #ifndef NO_CUGRAPH_OPS assert(cugraph::invalid_edge_id_v == cugraph::ops::graph::INVALID_ID); using vertex_t = typename GraphViewType::vertex_type; - using edge_t = typename GraphViewType::edge_type; using key_t = typename thrust::iterator_traits::value_type; int minor_comm_size{1};