Skip to content

Commit

Permalink
undo changes to uniform neighbor sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Aug 22, 2024
1 parent 3013684 commit d6b6234
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 52 deletions.
1 change: 0 additions & 1 deletion cpp/src/c_api/neighbor_sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#pragma once

#include "c_api/array.hpp"
// FIXME: Remove this file
namespace cugraph {
namespace c_api {

Expand Down
9 changes: 3 additions & 6 deletions cpp/src/sampling/neighbor_sampling_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<label_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<label_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
// raft::host_span<int32_t const> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -410,8 +407,8 @@ uniform_neighbor_sample(
starting_vertices,
starting_vertex_labels,
label_to_output_comm_rank,
fan_out,
heterogeneous_fan_out,
std::make_optional(fan_out),
std::nullopt,
return_hops,
with_replacement,
prior_sources_behavior,
Expand Down
8 changes: 2 additions & 6 deletions cpp/src/sampling/neighbor_sampling_mg_v32_e32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -67,9 +65,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand Down
9 changes: 2 additions & 7 deletions cpp/src/sampling/neighbor_sampling_mg_v32_e64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -67,9 +65,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -96,7 +92,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down
10 changes: 2 additions & 8 deletions cpp/src/sampling/neighbor_sampling_mg_v64_e64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -67,9 +65,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -96,7 +92,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down Expand Up @@ -124,7 +119,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down
10 changes: 2 additions & 8 deletions cpp/src/sampling/neighbor_sampling_sg_v32_e32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -67,9 +65,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -96,7 +92,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down Expand Up @@ -124,7 +119,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down
10 changes: 2 additions & 8 deletions cpp/src/sampling/neighbor_sampling_sg_v32_e64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -67,9 +65,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -96,7 +92,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down Expand Up @@ -124,7 +119,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down
10 changes: 2 additions & 8 deletions cpp/src/sampling/neighbor_sampling_sg_v64_e64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -67,9 +65,7 @@ uniform_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
std::optional<raft::host_span<int32_t const>> fan_out,
std::optional<std::tuple<raft::host_span<int32_t const>, raft::host_span<int32_t const>>>
heterogeneous_fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
bool with_replacement,
Expand All @@ -96,7 +92,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down Expand Up @@ -124,7 +119,6 @@ biased_neighbor_sample(
std::optional<raft::device_span<int32_t const>> starting_vertex_labels,
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank,
// std::optional<raft::host_span<int32_t const>> fan_out,
raft::host_span<int32_t const> fan_out,
raft::random::RngState& rng_state,
bool return_hops,
Expand Down

0 comments on commit d6b6234

Please sign in to comment.