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

Fix MG Louvain test compile errors #1797

Merged

Conversation

seunghwak
Copy link
Contributor

Fix MG Louvain test compile errors after recent PR merges involving thrust execution policies.

@seunghwak seunghwak requested a review from a team as a code owner August 31, 2021 14:37
@seunghwak seunghwak added 3 - Ready for Review bug Something isn't working non-breaking Non-breaking change labels Aug 31, 2021
@@ -85,8 +85,7 @@ compressed_sparse_to_edgelist(edge_t const* compressed_sparse_offsets,
// FIXME: this is highly inefficient for very high-degree vertices, for better performance, we can
// fill high-degree vertices using one CUDA block per vertex, mid-degree vertices using one CUDA
// warp per vertex, and low-degree vertices using one CUDA thread per block
auto execution_policy = handle.get_thrust_policy();
thrust::for_each(execution_policy,
thrust::for_each(rmm::exec_policy(stream),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I imagine this was missed because CI doesn't compile MG analytics.

Would it be better to change the function signature to pass in handle? That would make it more consistent with the rest of the code base.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@kaatish addressed this in #1798 by changing the function signature. We should decide which is better and be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would it be better to change the function signature to pass in handle? That would make it more consistent with the rest of the code base.

Ideally, this code should be deleted as this file is pretty much copy-and-paste (plus little modification) of https://github.com/rapidsai/cugraph/blob/branch-21.10/cpp/src/structure/coarsen_graph.cu

The reason this function is designed to take stream instead of handle is to facilitate multi-stream execution. Different matrix partitions can be concurrently executed in multiple CUDA streams and such functions take stream instead of handle (another approach might be passing handle + stream index if we see multiple cases using other handle features).

@ChuckHastings
Copy link
Collaborator

rerun tests

@codecov-commenter
Copy link

Codecov Report

Merging #1797 (01d5d2b) into branch-21.10 (bf64c2c) will increase coverage by 11.67%.
The diff coverage is n/a.

❗ Current head 01d5d2b differs from pull request most recent head 9e4514c. Consider uploading reports for the commit 9e4514c to get more accurate results
Impacted file tree graph

@@                Coverage Diff                @@
##           branch-21.10    #1797       +/-   ##
=================================================
+ Coverage         59.85%   71.52%   +11.67%     
=================================================
  Files                77      134       +57     
  Lines              3547     8126     +4579     
=================================================
+ Hits               2123     5812     +3689     
- Misses             1424     2314      +890     
Impacted Files Coverage Δ
python/cugraph/cugraph/__init__.py 100.00% <ø> (ø)
python/cugraph/cugraph/_version.py 44.40% <ø> (ø)
python/cugraph/cugraph/centrality/__init__.py 100.00% <ø> (ø)
...graph/cugraph/centrality/betweenness_centrality.py 90.00% <ø> (ø)
...thon/cugraph/cugraph/centrality/katz_centrality.py 89.47% <ø> (ø)
python/cugraph/cugraph/comms/comms.py 34.52% <ø> (ø)
python/cugraph/cugraph/community/__init__.py 70.37% <ø> (ø)
python/cugraph/cugraph/community/ecg.py 100.00% <ø> (ø)
python/cugraph/cugraph/community/egonet.py 92.30% <ø> (ø)
...ython/cugraph/cugraph/community/ktruss_subgraph.py 84.37% <ø> (ø)
... and 182 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65ca876...9e4514c. Read the comment docs.

@ChuckHastings
Copy link
Collaborator

@gpucibot merge

@rapids-bot rapids-bot bot merged commit b89eb18 into rapidsai:branch-21.10 Sep 1, 2021
@seunghwak seunghwak deleted the bug_louvain_test_compile_error branch October 19, 2021 21:00
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants