Skip to content

Commit

Permalink
fix clang-format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHastings committed Mar 23, 2022
1 parent 7217cfa commit 38d63f8
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 49 deletions.
102 changes: 55 additions & 47 deletions cpp/src/detail/shuffle_wrappers.cu
Original file line number Diff line number Diff line change
Expand Up @@ -377,53 +377,61 @@ void collect_vertex_values_to_local(raft::handle_t const& handle,
}
}

template void collect_vertex_values_to_local<int32_t, float, false>(raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, float, false>(raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int64_t local_vertex_first);

template void collect_vertex_values_to_local<int32_t, double, false>(raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, double, false>(raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int64_t local_vertex_first);

template void collect_vertex_values_to_local<int32_t, float, true>(raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, float, true>(raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int64_t local_vertex_first);

template void collect_vertex_values_to_local<int32_t, double, true>(raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, double, true>(raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int64_t local_vertex_first);
template void collect_vertex_values_to_local<int32_t, float, false>(
raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, float, false>(
raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int64_t local_vertex_first);

template void collect_vertex_values_to_local<int32_t, double, false>(
raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, double, false>(
raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int64_t local_vertex_first);

template void collect_vertex_values_to_local<int32_t, float, true>(
raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, float, true>(
raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<float>& d_values,
rmm::device_uvector<float>& d_local_values,
int64_t local_vertex_first);

template void collect_vertex_values_to_local<int32_t, double, true>(
raft::handle_t const& handle,
rmm::device_uvector<int32_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int32_t local_vertex_first);

template void collect_vertex_values_to_local<int64_t, double, true>(
raft::handle_t const& handle,
rmm::device_uvector<int64_t>& d_vertices,
rmm::device_uvector<double>& d_values,
rmm::device_uvector<double>& d_local_values,
int64_t local_vertex_first);

} // namespace detail
} // namespace cugraph
5 changes: 3 additions & 2 deletions cpp/tests/c_api/mg_test_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C" int run_mg_test(int (*test)(const cugraph_resource_handle_t*),

auto raft_handle =
reinterpret_cast<cugraph::c_api::cugraph_resource_handle_t const*>(handle)->handle_;
auto &comm = raft_handle->get_comms();
auto& comm = raft_handle->get_comms();

rank = cugraph_resource_handle_get_rank(handle);

Expand All @@ -54,7 +54,8 @@ extern "C" int run_mg_test(int (*test)(const cugraph_resource_handle_t*),
// code from the non-thrust code
rmm::device_uvector<int> d_input(1, raft_handle->get_stream());
raft::update_device(d_input.data(), &ret_val, 1, raft_handle->get_stream());
comm.allreduce(d_input.data(), d_input.data(), 1, raft::comms::op_t::SUM, raft_handle->get_stream());
comm.allreduce(
d_input.data(), d_input.data(), 1, raft::comms::op_t::SUM, raft_handle->get_stream());
raft::update_host(&ret_val, d_input.data(), 1, raft_handle->get_stream());
auto status = comm.sync_stream(raft_handle->get_stream());
CUGRAPH_EXPECTS(status == raft::comms::status_t::SUCCESS, "sync_stream() failure.");
Expand Down

0 comments on commit 38d63f8

Please sign in to comment.