diff --git a/cpp/tests/sampling/mg_uniform_neighbor_sampling.cu b/cpp/tests/sampling/mg_uniform_neighbor_sampling.cu index 82fb2430ca1..57f85a212b1 100644 --- a/cpp/tests/sampling/mg_uniform_neighbor_sampling.cu +++ b/cpp/tests/sampling/mg_uniform_neighbor_sampling.cu @@ -163,7 +163,6 @@ class Tests_MGUniform_Neighbor_Sampling EXPECT_THROW( cugraph::uniform_neighbor_sample( *handle_, - handle, mg_graph_view, mg_edge_weight_view, std::optional>{std::nullopt}, diff --git a/cpp/tests/sampling/sg_uniform_neighbor_sampling.cu b/cpp/tests/sampling/sg_uniform_neighbor_sampling.cu index a59ea7feb8f..f795c11437f 100644 --- a/cpp/tests/sampling/sg_uniform_neighbor_sampling.cu +++ b/cpp/tests/sampling/sg_uniform_neighbor_sampling.cu @@ -128,25 +128,29 @@ class Tests_Uniform_Neighbor_Sampling random_sources.size(), handle.get_stream()); -#ifdef NO_CUGRAPH_OPS - EXPECT_THROW(cugraph::uniform_neighbor_sample( - handle, - graph_view, - edge_weight_view, - std::nullopt, - std::nullopt, - std::move(random_sources_copy), - std::move(batch_number), - raft::host_span(uniform_neighbor_sampling_usecase.fanout.data(), - uniform_neighbor_sampling_usecase.fanout.size()), - rng_state, - true, - uniform_neighbor_sampling_usecase.flag_replacement), - std::exception); -#else std::optional, raft::device_span>> label_to_output_comm_rank_mapping{std::nullopt}; +#ifdef NO_CUGRAPH_OPS + EXPECT_THROW( + cugraph::uniform_neighbor_sample( + handle, + graph_view, + edge_weight_view, + std::optional>{std::nullopt}, + std::optional>{std::nullopt}, + raft::device_span{random_sources_copy.data(), random_sources.size()}, + batch_number ? std::make_optional(raft::device_span{batch_number->data(), + batch_number->size()}) + : std::nullopt, + label_to_output_comm_rank_mapping, + raft::host_span(uniform_neighbor_sampling_usecase.fanout.data(), + uniform_neighbor_sampling_usecase.fanout.size()), + rng_state, + true, + uniform_neighbor_sampling_usecase.flag_replacement), + std::exception); +#else auto&& [src_out, dst_out, wgt_out, edge_id, edge_type, hop, labels, offsets] = cugraph::uniform_neighbor_sample( handle,