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

Sort local neighbors in the graph adjacency list. #1886

Merged
merged 3 commits into from
Oct 18, 2021

Conversation

seunghwak
Copy link
Contributor

@seunghwak seunghwak commented Oct 15, 2021

This is necessary for implementing Node2Vec and triangle counting (and also improves edge traversal performance as this improves locality of row/column property accesses).

@seunghwak seunghwak added 3 - Ready for Review improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 15, 2021
@seunghwak seunghwak added this to the 21.12 milestone Oct 15, 2021
@seunghwak seunghwak self-assigned this Oct 15, 2021
@seunghwak seunghwak requested a review from a team as a code owner October 15, 2021 15:32
offset_first,
offset_first + 1,
0,
sizeof(vertex_t) * 8,
Copy link
Collaborator

Choose a reason for hiding this comment

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

sizeof(vertex_t) << 3 should be faster (although, most likely optimized out by the compiler, anyway)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes... and this will be executed only few times per graph creation, so even without optimization, this will increase execution time by only few nanoseconds, better go for clarity.

@aschaffer aschaffer self-requested a review October 15, 2021 17:28
@seunghwak seunghwak added 2 - In Progress DO NOT MERGE Hold off on merging; see PR for details and removed 3 - Ready for Review labels Oct 16, 2021
@seunghwak seunghwak added 3 - Ready for Review and removed 2 - In Progress DO NOT MERGE Hold off on merging; see PR for details labels Oct 18, 2021
@ChuckHastings
Copy link
Collaborator

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 4cd2a55 into rapidsai:branch-21.12 Oct 18, 2021
@seunghwak seunghwak deleted the enh_sort_adjacency_list branch October 20, 2021 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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