Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance optimize BFS (including direction optimizing BFS implementation, mainly for single-GPU) #4527

Merged

Conversation

seunghwak
Copy link
Contributor

@seunghwak seunghwak commented Jul 8, 2024

This PR includes multiple performance optimizations to improve BFS performance (including direction optimizing BFS for symmetric graphs).

  • Implement direction optimizing BFS
  • Add the transform_reduce_v_frontier_outgoing_e_by_src primitive (this resembles transform_reduce_v_frontier_outgoing_e_by_dst but performs reduction based on src)
  • Update the fill_edge_src|dst_property to take the fill value as the last input parameter (to be consistent with thrust::fill or std::fill)
  • Update the fill_edge_src|dst_property to take a vertex list to fill only a subset of vertex property values.
  • Update the update_edge_src|dst_property primitive to take a mutable view (to be consistent with other primitives)
  • Update the vertex_frontier bucket to take a raft::device_span (supports creation of non-owning bucket, this saves a copy operation in some cases)
  • Fix compiler warnings (cuda 12.4)
  • Few updates in code cosmetics.

closes https://github.com/rapidsai/graph_dl/issues/544

seunghwak added 28 commits June 4, 2024 15:55
…table_view and change the order of mutalbe_view and fill value in the input parameter list
@seunghwak seunghwak requested review from a team as code owners July 8, 2024 23:38
@seunghwak seunghwak self-assigned this Jul 8, 2024
@seunghwak seunghwak added this to the 24.08 milestone Jul 8, 2024
@seunghwak seunghwak added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jul 8, 2024
Copy link
Contributor

@jnke2016 jnke2016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@ChuckHastings
Copy link
Collaborator

/merge

@rapids-bot rapids-bot bot merged commit b55c279 into rapidsai:branch-24.08 Jul 10, 2024
135 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake cuGraph improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants