Skip to content

Commit

Permalink
Merge branch 'branch-24.06' into test/futuredeprwarnings/errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke authored May 15, 2024
2 parents 36ca20f + a77840e commit 266f118
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cpp/src/traversal/bfs_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

#include <raft/core/handle.hpp>

#include <rmm/exec_policy.hpp>

#include <thrust/copy.h>
#include <thrust/count.h>
#include <thrust/fill.h>
Expand Down Expand Up @@ -149,19 +147,19 @@ void bfs(raft::handle_t const& handle,
auto constexpr invalid_distance = std::numeric_limits<vertex_t>::max();
auto constexpr invalid_vertex = invalid_vertex_id<vertex_t>::value;

thrust::fill(rmm::exec_policy(handle.get_thrust_policy()),
thrust::fill(handle.get_thrust_policy(),
distances,
distances + push_graph_view.local_vertex_partition_range_size(),
invalid_distance);
thrust::fill(rmm::exec_policy(handle.get_thrust_policy()),
thrust::fill(handle.get_thrust_policy(),
predecessor_first,
predecessor_first + push_graph_view.local_vertex_partition_range_size(),
invalid_vertex);
auto vertex_partition = vertex_partition_device_view_t<vertex_t, GraphViewType::is_multi_gpu>(
push_graph_view.local_vertex_partition_view());
if (n_sources) {
thrust::for_each(
rmm::exec_policy(handle.get_thrust_policy()),
handle.get_thrust_policy(),
sources,
sources + n_sources,
[vertex_partition, distances, predecessor_first] __device__(auto v) {
Expand Down

0 comments on commit 266f118

Please sign in to comment.