Skip to content

Commit

Permalink
remove unusued code
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Aug 13, 2024
1 parent 0adb2fd commit bb5a3e2
Showing 1 changed file with 0 additions and 63 deletions.
63 changes: 0 additions & 63 deletions cpp/src/c_api/neighbor_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,69 +821,6 @@ struct biased_neighbor_sampling_functor : public cugraph::c_api::abstract_functo
}
}
};

#if 0
struct create_heterogeneous_fanout_functor : public cugraph::c_api::abstract_functor {
raft::handle_t const& handle_;
//cugraph::c_api::cugraph_graph_t* graph_;
//cugraph::c_api::cugraph_type_erased_host_array_view_t const* edge_type_size_;
//cugraph::c_api::cugraph_type_erased_host_array_view_t const* fanout_;
// FIXME: This type doesn't exist: instead create an 'std::tuple<cugraph_type_erased_host_array_t*>'
//cugraph::c_api::cugraph_sample_heterogeneous_fanout_t* result_{};

create_heterogeneous_fanout_functor(cugraph_resource_handle_t const* handle//,
//::cugraph_graph_t* graph,
//::cugraph_type_erased_host_array_view_t const* edge_type_size,
//::cugraph_type_erased_host_array_view_t const* fanout
)
: abstract_functor(),
handle_(*reinterpret_cast<cugraph::c_api::cugraph_resource_handle_t const*>(handle)->handle_)//,
//graph_(reinterpret_cast<cugraph::c_api::cugraph_graph_t*>(graph)),
//edge_type_size_(
// reinterpret_cast<cugraph::c_api::cugraph_type_erased_host_array_view_t const*>(edge_type_size)),
//fanout_(
// reinterpret_cast<cugraph::c_api::cugraph_type_erased_host_array_view_t const*>(fanout))
{
}

template <typename vertex_t,
typename edge_t,
typename weight_t,
typename edge_type_t,
bool store_transposed,
bool multi_gpu>
void operator()()
{
printf("\nhello world\n");
/*
// FIXME: Remove this check as it is not necessary
if constexpr (!cugraph::is_candidate<vertex_t, edge_t, weight_t>::value) {
unsupported();
} else {
std::vector<int32_t> edge_type_size_copy{edge_type_size_->size_};
std::vector<int32_t> fanout_copy{fanout_->size_};
//rmm::device_uvector<int32_t> edge_type_size_copy(edge_type_size_->size_, handle_.get_stream());
//rmm::device_uvector<int32_t> fanout_copy(fanout_->size_, handle_.get_stream());

raft::copy(
edge_type_size_copy.data(), edge_type_size_->as_type<vertex_t>(), edge_type_size_->size_, handle_.get_stream());
raft::copy(
fanout_copy.data(), fanout_->as_type<vertex_t>(), fanout_->size_, handle_.get_stream());

// std::tuple (template)
// result_ = new std::tuple <template type of 2 cugraph_type_erased_host_array_t>
result_ = new cugraph::c_api::cugraph_sample_heterogeneous_fanout_t{
new cugraph::c_api::cugraph_type_erased_host_array_t(edge_type_size_copy, graph_->vertex_type_),
new cugraph::c_api::cugraph_type_erased_host_array_t(fanout_copy, graph_->vertex_type_)};
}
*/
}
};
#endif




} // namespace

extern "C" cugraph_error_code_t cugraph_sampling_options_create(
Expand Down

0 comments on commit bb5a3e2

Please sign in to comment.