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

[BUG] Fix Issue in cuGraph-PyG Tests Blocking CI #3607

Merged
merged 11 commits into from
May 26, 2023

Conversation

alexbarghi-nv
Copy link
Member

One of the fixtures for the cuGraph-PyG tests is not properly partitioning the edgelist, causing some tests to fail. This PR updates that fixture to correctly partition the edgelist.

@alexbarghi-nv alexbarghi-nv self-assigned this May 24, 2023
@alexbarghi-nv alexbarghi-nv added bug Something isn't working non-breaking Non-breaking change labels May 24, 2023
@alexbarghi-nv alexbarghi-nv added this to the 23.06 milestone May 24, 2023
@alexbarghi-nv alexbarghi-nv marked this pull request as ready for review May 24, 2023 17:07
@alexbarghi-nv alexbarghi-nv requested a review from a team as a code owner May 24, 2023 17:07
@@ -79,7 +78,7 @@ def karate_gnn():
el = karate.get_edgelist().reset_index(drop=True)
el.src = el.src.astype("int64")
el.dst = el.dst.astype("int64")
all_vertices = np.array_split(cudf.concat([el.src, el.dst]).unique().values_host, 2)
all_vertices = np.array_split(np.arange(34), 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

This failure is probably caused by rapidsai/cudf#11656.

The ordering of cudf's unique and drop_duplicates has changed. Previously, the order was sorted. Now, the order is stable (preserves input order while removing duplicates). This may affect other parts of cuGraph, too, so I will take a look.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, I was aware of that. Ironically, I have another PR which takes advantage of the new default behavior for drop_duplicates.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it looks like unique is heavily used in cuGraph's Python code. We may need to review these for correctness if sorted order is expected. https://github.com/search?q=repo%3Arapidsai%2Fcugraph+unique%28+language%3APython&type=code&l=Python

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, thanks @alexbarghi-nv! Glad to hear the new behavior is helpful for your other PR! :D

@rlratzel rlratzel requested review from a team as code owners May 25, 2023 20:57
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.

Approving doc updates from the https://github.com/bdice/cugraph/tree/numba-0.57 branch that had to be merged in.

@rlratzel
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit 8574e98 into rapidsai:branch-23.06 May 26, 2023
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.

5 participants