-
Notifications
You must be signed in to change notification settings - Fork 550
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
[REVIEW] Avoid useless copy when exchanging flag buffers in CSR WeakCC #3096
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Please update the changelog in order to start CI tests. View the gpuCI docs here. |
Codecov Report
@@ Coverage Diff @@
## branch-0.17 #3096 +/- ##
============================================
Coverage 69.38% 69.38%
============================================
Files 193 193
Lines 14704 14704
============================================
Hits 10203 10203
Misses 4501 4501 Continue to review full report at Codecov.
|
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.
Thanks Louis for the PR. One minor comment.
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.
Changes LGTM. Thanks @Nyrio for the fix.
As I was going through the DBSCAN code, I noticed that in the CSR Weak Connected Components implementation, the flag buffers are exchanged with memory copies (and, worse, with 2 device->host and 2 host->device copies).
This can be done by simply switching the pointers. It is faster, uses less memory, and more elegant.