Skip to content

Commit

Permalink
Small fix to the MG PyG Test to Account for Current Sampling Behavior (
Browse files Browse the repository at this point in the history
…#2666)

This PR will correct an error that shows up occasionally in the MG tests, especially when running on an odd number of GPUs.  This error is related to issue #2665 and resolves it temporarily while the C++ team works on a permanent fix.

Authors:
  - Alex Barghi (https://github.com/alexbarghi-nv)

Approvers:
  - Rick Ratzel (https://github.com/rlratzel)

URL: #2666
  • Loading branch information
alexbarghi-nv authored Sep 9, 2022
1 parent dfc640f commit aabda42
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python/cugraph/cugraph/tests/mg/test_mg_pyg_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ def test_neighbor_sample(single_vertex_graph):

noi_groups, row_dict, col_dict, _ = graph_store.neighbor_sample(
index=cupy.array([0, 1, 2, 3, 4], dtype='int32'),
num_neighbors=[-1],
# FIXME The following line should be num_neighbors=[-1] but
# there is currently a bug in MG uniform_neighbor_sample.
# Once this bug is fixed, this line should be changed.
num_neighbors=[8],
replace=True,
directed=True,
edge_types=[
Expand Down Expand Up @@ -487,7 +490,10 @@ def test_neighbor_sample_multi_vertex(

noi_groups, row_dict, col_dict, _ = graph_store.neighbor_sample(
index=cupy.array([0, 1, 2, 3, 4], dtype='int32'),
num_neighbors=[-1],
# FIXME The following line should be num_neighbors=[-1] but
# there is currently a bug in MG uniform_neighbor_sample.
# Once this bug is fixed, this line should be changed.
num_neighbors=[8],
replace=True,
directed=True,
edge_types=[
Expand Down

0 comments on commit aabda42

Please sign in to comment.