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] Skipping hdbscan pytests when gpu is a100 #4007

Merged
Merged
Changes from all 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
7 changes: 7 additions & 0 deletions python/cuml/test/test_hdbscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

import cupy as cp

import rmm

IS_A100 = 'A100' in rmm._cuda.gpu.deviceGetName(0)

test_datasets = {
"digits": datasets.load_digits(),
"boston": datasets.load_boston(),
Expand All @@ -52,6 +56,7 @@ def assert_cluster_counts(sk_agg, cuml_agg, digits=25):
np.testing.assert_almost_equal(sk_counts, cu_counts, decimal=-1 * digits)


@pytest.mark.skipif(IS_A100, reason="Skipping test on A100")
@pytest.mark.parametrize('nrows', [500])
@pytest.mark.parametrize('ncols', [25])
@pytest.mark.parametrize('nclusters', [2, 5])
Expand Down Expand Up @@ -109,6 +114,7 @@ def test_hdbscan_blobs(nrows, ncols, nclusters,
np.sort(cuml_agg.cluster_persistence_), rtol=0.01, atol=0.01)


@pytest.mark.skipif(IS_A100, reason="Skipping test on A100")
@pytest.mark.parametrize('dataset', test_datasets.values())
@pytest.mark.parametrize('cluster_selection_epsilon', [0.0, 50.0, 150.0])
@pytest.mark.parametrize('min_samples_cluster_size_bounds', [(150, 150, 0),
Expand Down Expand Up @@ -161,6 +167,7 @@ def test_hdbscan_sklearn_datasets(dataset,
np.sort(cuml_agg.cluster_persistence_), rtol=0.1, atol=0.1)


@pytest.mark.skipif(IS_A100, reason="Skipping test on A100")
@pytest.mark.parametrize('nrows', [1000])
@pytest.mark.parametrize('dataset', dataset_names)
@pytest.mark.parametrize('min_samples', [15])
Expand Down