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

updated MG Test code to not use DiGraph #2213

Merged
merged 3 commits into from
Apr 18, 2022
Merged

updated MG Test code to not use DiGraph #2213

merged 3 commits into from
Apr 18, 2022

Conversation

BradReesWork
Copy link
Member

replace all DiGraph with Graph(directed=True)

Set some test to run on single GPU

@BradReesWork BradReesWork requested a review from a team as a code owner April 8, 2022 15:32
@BradReesWork BradReesWork added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 8, 2022
@BradReesWork BradReesWork added this to the 22.06 milestone Apr 8, 2022
@BradReesWork BradReesWork changed the title updated code to not use DiGraph updated MG Test code to not use DiGraph Apr 8, 2022
@codecov-commenter
Copy link

codecov-commenter commented Apr 12, 2022

Codecov Report

Merging #2213 (a8c790c) into branch-22.06 (f545fa5) will increase coverage by 0.18%.
The diff coverage is 46.15%.

@@               Coverage Diff                @@
##           branch-22.06    #2213      +/-   ##
================================================
+ Coverage         70.82%   71.00%   +0.18%     
================================================
  Files               170      170              
  Lines             11036    11015      -21     
================================================
+ Hits               7816     7821       +5     
+ Misses             3220     3194      -26     
Impacted Files Coverage Δ
python/cugraph/cugraph/tests/dask/test_mg_bfs.py 0.00% <0.00%> (ø)
python/cugraph/cugraph/tests/dask/test_mg_comms.py 0.00% <ø> (ø)
...cugraph/cugraph/tests/dask/test_mg_connectivity.py 0.00% <0.00%> (ø)
...ython/cugraph/cugraph/tests/dask/test_mg_degree.py 0.00% <0.00%> (ø)
python/cugraph/cugraph/tests/dask/test_mg_hits.py 0.00% <ø> (ø)
...thon/cugraph/cugraph/tests/dask/test_mg_louvain.py 0.00% <0.00%> (ø)
...hon/cugraph/cugraph/tests/dask/test_mg_pagerank.py 0.00% <0.00%> (ø)
python/cugraph/cugraph/tests/dask/test_mg_sssp.py 0.00% <0.00%> (ø)
...thon/cugraph/cugraph/tests/dask/test_mg_utility.py 0.00% <0.00%> (ø)
python/cugraph/cugraph/tests/utils.py 79.14% <100.00%> (ø)
... and 5 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 f545fa5...a8c790c. Read the comment docs.

@acostadon acostadon self-requested a review April 15, 2022 18:24
Copy link
Contributor

@acostadon acostadon left a comment

Choose a reason for hiding this comment

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

Didnt find any issues.
How did you decide which algorithms to run with a single gpu

Copy link
Contributor

@jnke2016 jnke2016 left a comment

Choose a reason for hiding this comment

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

it looks good to me

Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple of questions/suggestions below but I'll approve now since they're optional.

Also, if we want CI to run these MG tests using a single GPU, we'll also need to remove the --ignore=tests/dask option in this script here.

@@ -13,17 +13,17 @@

import cugraph.dask as dcg
import gc
import pytest
# import pytest
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this dead code be removed now?

Copy link
Member Author

Choose a reason for hiding this comment

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

I left that in there in case we want to re-enable MG only testing. pytest is needed for the skip

)
# @pytest.mark.skipif(
# is_single_gpu(), reason="skipping MG testing on Single GPU system"
# )
def test_dask_bfs(dask_client):
gc.collect()
Copy link
Contributor

@rlratzel rlratzel Apr 18, 2022

Choose a reason for hiding this comment

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

optional: I've been using a single module-level setup function instead (like this) and removing all the individual gc.collect() calls.

@BradReesWork
Copy link
Member Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit a6dc6b7 into rapidsai:branch-22.06 Apr 18, 2022
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.

5 participants