-
Notifications
You must be signed in to change notification settings - Fork 311
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
Improve MG graph creation #2044
Merged
rapids-bot
merged 17 commits into
rapidsai:branch-22.04
from
seunghwak:enh_graph_creation
Feb 9, 2022
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6102cd1
update group_by_and_count to not use reduce_by_key (which is expensiv…
seunghwak 5146b19
add time measurements (should be undone)
seunghwak 5073304
Merge branch 'branch-22.04' of github.com:rapidsai/cugraph into enh_g…
seunghwak 7c02fcf
improve weak scaling behavior of renumber
seunghwak 0744160
move is_first_in_run_t to graph_utils.cuh
seunghwak 077008b
avoid using device lambdas
seunghwak 6a0dfa1
fix compile errors
seunghwak 41645aa
code cleanup
seunghwak a0b009e
fix overflow bug with 2^31 or more vertices
seunghwak b5cb9c4
Merge branch 'branch-22.04' of github.com:rapidsai/cugraph into enh_g…
seunghwak 9a70472
delete temporary performance measurement code
seunghwak 214ada9
delete additional temporary performance measurement code
seunghwak 3a605b5
remove temporary performance measurement code
seunghwak c537e2d
Merge branch 'branch-22.04' of github.com:rapidsai/cugraph into enh_g…
seunghwak 4852ce4
clang-format & copyright year
seunghwak ac8a6b7
added static_assert
seunghwak f17db5f
Merge branch 'branch-22.04' of github.com:rapidsai/cugraph into enh_g…
seunghwak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of casting
i
toint
can you cast it totypename std::iterator_traits<GroupIdIterator>::value_type
while you are using it for binary_search?It could be cast to
int
while returning in the tuple.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah...
Actually,
typename std::iterator_traits<GroupIdIterator>::value_type
should beint
here (Group IDs or GPU IDs or process IDs are all assumed to beint
). UsingGroupIdIterator
intead ofint
type pointer because I am using thrust::transform_iterator to compute group ID on the fly.I'll add
static_assert(std::is_same_v(typename std::iterator_traits<GroupIdIterator>::value_type, int));
to make this clearer.And I may modify
operator()(size_t i)
tooperator()(int i)
to avoid type casting... but I have mixed thoughts about this (I assumethrust::tabulate
computes the ranges ofi
from thrust::distance() andi
can potentially overflowint
. Shouldn't happen unless we have more than 2^31-1 GPUs and that's the assumption for using 'int' here for GPU IDs. I guess explicitly casting this makes this intention more clearer than relying on implicit casting).What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, that works.