-
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
HITS C API implementation #2150
HITS C API implementation #2150
Conversation
cpp/src/detail/shuffle_wrappers.cu
Outdated
d_vertices.begin(), | ||
d_vertices.end(), | ||
d_values.begin(), | ||
[key_func = cugraph::detail::compute_gpu_id_from_vertex_t<vertex_t>{comm_size}] __device__( |
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.
Have you tested with initial guess hub values? If I am not mistaken, you're calling this after renumbering, but cugrpah::detail::compute_gpu_id_from_vertex_t
expects original (before renumbering) vertex IDs.
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.
adding a test in the next push. Refactored this code as you suggested.
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #2150 +/- ##
================================================
+ Coverage 73.95% 73.99% +0.04%
================================================
Files 157 157
Lines 10496 10496
================================================
+ Hits 7762 7767 +5
+ Misses 2734 2729 -5
Continue to review full report at Codecov.
|
vertex_t local_vertex_first, | ||
vertex_t local_vertex_last, | ||
value_t default_value, | ||
bool do_expensive_check); |
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.
Do we still need this function?
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.
We are using this function, I think it addresses what you are suggesting needs to be done.
collect_renumber_ext_vertex_values_to_local
does:
- shuffle to get ext vertex values to the proper GPU
- local renumber of ext vertices
- scatter to populate our dense vertex property arrays
If I can rename the function to make it more clear that these steps are what is done, I'm open to a better name.
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.
Gotcha, so this function gets actually updated to implement the new logic.
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.
Maybe something like collect_local_vertex_values_from_ext_vertex_value_pairs
... ?
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.
Sounds good. I'll update the function name.
@gpucibot merge |
Closes #2092
Provide the C API implementation for HITS. Adds a unit tester for MG, updates the unit tests for both SG and MG.