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

[REVIEW] Updates to support nightly MG test automation #1308

Merged
merged 6 commits into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions python/cugraph/tests/dask/mg_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ def get_visible_devices():


def skip_if_not_enough_devices(required_devices):
visible_devices = get_visible_devices()
number_of_visible_devices = len(visible_devices)
if required_devices > number_of_visible_devices:
pytest.skip("Not enough devices available to "
"test MG({})".format(required_devices))
if required_devices is not None:
visible_devices = get_visible_devices()
number_of_visible_devices = len(visible_devices)
if required_devices > number_of_visible_devices:
pytest.skip("Not enough devices available to "
"test MG({})".format(required_devices))


class MGContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
# Parameters
# =============================================================================
DATASETS = ["../datasets/karate.csv"]
MG_DEVICE_COUNT_OPTIONS = [1, 2, 3, 4]
MG_DEVICE_COUNT_OPTIONS = [pytest.param(1, marks=pytest.mark.preset_gpu_count),
pytest.param(2, marks=pytest.mark.preset_gpu_count),
pytest.param(3, marks=pytest.mark.preset_gpu_count),
pytest.param(4, marks=pytest.mark.preset_gpu_count),
None]
RESULT_DTYPE_OPTIONS = [np.float64]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
# Parameters
# =============================================================================
DATASETS = ["../datasets/karate.csv"]
MG_DEVICE_COUNT_OPTIONS = [1, 2, 4]
MG_DEVICE_COUNT_OPTIONS = [pytest.param(1, marks=pytest.mark.preset_gpu_count),
pytest.param(2, marks=pytest.mark.preset_gpu_count),
pytest.param(3, marks=pytest.mark.preset_gpu_count),
pytest.param(4, marks=pytest.mark.preset_gpu_count),
None]
RESULT_DTYPE_OPTIONS = [np.float64]


Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_bfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
rlratzel marked this conversation as resolved.
Show resolved Hide resolved
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_degree.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_katz_centrality.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_louvain.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def client_connection():
# setup
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_pagerank.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def personalize(vertices, personalization_perc):
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_renumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
7 changes: 5 additions & 2 deletions python/cugraph/tests/dask/test_mg_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@

DATASETS_OPTIONS = utils.DATASETS_SMALL
DIRECTED_GRAPH_OPTIONS = [False, True]
# MG_DEVICE_COUNT_OPTIONS = [1, 2, 3, 4]
MG_DEVICE_COUNT_OPTIONS = [1]
MG_DEVICE_COUNT_OPTIONS = [pytest.param(1, marks=pytest.mark.preset_gpu_count),
pytest.param(2, marks=pytest.mark.preset_gpu_count),
pytest.param(3, marks=pytest.mark.preset_gpu_count),
pytest.param(4, marks=pytest.mark.preset_gpu_count),
None]


@pytest.mark.skipif(
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_sssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/tests/dask/test_mg_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def setup_function():
def client_connection():
cluster = LocalCUDACluster()
client = Client(cluster)
client.wait_for_workers(None) # number of devices None = all vsble devices
Comms.initialize(p2p=True)

yield client
Expand Down
1 change: 1 addition & 0 deletions python/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ markers =
managedmem_off: RMM managed memory disabled
poolallocator_on: RMM pool allocator enabled
poolallocator_off: RMM pool allocator disabled
preset_gpu_count: Use a hard-coded number of GPUs for specific MG tests
ETL: benchmarks for ETL steps
small: small datasets
tiny: tiny datasets
Expand Down