Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/branch-25.02' into branch-25.0…
Browse files Browse the repository at this point in the history
…2_node2vec-random-walks
  • Loading branch information
jnke2016 committed Jan 16, 2025
2 parents f12bded + 0b50bf9 commit b7effbb
Show file tree
Hide file tree
Showing 215 changed files with 1,457 additions and 5,881 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
# Please keep pr-builder as the top job here
pr-builder:
needs:
- check-nightly-ci
- changed-files
- checks
- conda-cpp-build
Expand Down Expand Up @@ -42,6 +43,18 @@ jobs:
- name: Telemetry setup
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
uses: rapidsai/shared-actions/telemetry-dispatch-stash-base-env-vars@main
check-nightly-ci:
# Switch to ubuntu-latest once it defaults to a version of Ubuntu that
# provides at least Python 3.11 (see
# https://docs.python.org/3/library/datetime.html#datetime.date.fromisoformat)
runs-on: ubuntu-24.04
env:
RAPIDS_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check if nightly CI is passing
uses: rapidsai/shared-actions/check_nightly_success/dispatch@main
with:
repo: cugraph
changed-files:
secrets: inherit
needs: telemetry-setup
Expand Down
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ test-results
## Python build directories & artifacts
dask-worker-space/
htmlcov
*.conda
dist/
*.egg-info/
python/build
Expand All @@ -40,9 +41,7 @@ wheels/
wheelhouse/
_skbuild/
cufile.log

## pylibcugraph build directories & artifacts
python/pylibcugraph/pylibcugraph.egg-info
*.whl

## Patching
*.diff
Expand Down Expand Up @@ -89,10 +88,7 @@ docs/cugraph/lib*
docs/cugraph/api/*

# created by Dask tests
python/dask-worker-space
python/cugraph/dask-worker-space
python/cugraph/cugraph/dask-worker-space
python/cugraph/cugraph/tests/dask-worker-space
dask-worker-space/

# Sphinx docs & build artifacts
docs/cugraph/source/api_docs/api/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Copyright (c) 2022-2025, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -22,10 +22,6 @@
import numpy as np
import cupy as cp

# Facing issues with rapids-pytest-benchmark plugin
# pytest-benchmark.
import pytest_benchmark

from cugraph.generators import rmat
from cugraph.experimental import datasets
from cugraph_benchmarking import params
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Copyright (c) 2022-2025, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -18,18 +18,6 @@
import pytest
import numpy as np

# If the rapids-pytest-benchmark plugin is installed, the "gpubenchmark"
# fixture will be available automatically. Check that this fixture is available
# by trying to import rapids_pytest_benchmark, and if that fails, set
# "gpubenchmark" to the standard "benchmark" fixture provided by
# pytest-benchmark.
try:
import rapids_pytest_benchmark # noqa: F401
except ImportError:
import pytest_benchmark

gpubenchmark = pytest_benchmark.plugin.benchmark

from cugraph_service_client import CugraphServiceClient
from cugraph_service_client.exceptions import CugraphServiceError
from cugraph_service_client import RemoteGraph
Expand Down Expand Up @@ -178,7 +166,7 @@ def remote_graph_objs(request):
"with_replacement", [False], ids=lambda v: f"with_replacement={v}"
)
def bench_cgs_uniform_neighbor_sample(
gpubenchmark, remote_graph_objs, batch_size, fanout, with_replacement
benchmark, remote_graph_objs, batch_size, fanout, with_replacement
):
(G, num_verts, uniform_neighbor_sample_func) = remote_graph_objs

Expand All @@ -188,7 +176,7 @@ def bench_cgs_uniform_neighbor_sample(
)
# print(f"\n{uns_args}")
# FIXME: uniform_neighbor_sample cannot take a np.ndarray for start_list
result = gpubenchmark(
result = benchmark(
uniform_neighbor_sample_func,
G,
start_list=uns_args["start_list"],
Expand Down
10 changes: 3 additions & 7 deletions benchmarks/cugraph/pytest-based/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ directory under the root of the `cuGraph` source tree.
* cugraph built and installed (or `cugraph` sources and built C++ extensions
available on `PYTHONPATH`)

* rapids-pytest-benchmark pytest plugin (`conda install -c rapidsai
rapids-pytest-benchmark`)

* The benchmark datasets downloaded and installed in <cugraph>/datasets. Run the
script below from the <cugraph>/datasets directory:
```
Expand All @@ -25,8 +22,7 @@ cd <cugraph>/datasets

## Usage (Python)
### Python
* Run `pytest --help` (with the rapids-pytest-benchmark plugin installed) for
the full list of options
* Run `pytest --help` for the full list of options

* See also the `pytest.ini` file in this directory for examples of how to enable
options by default and define marks
Expand All @@ -44,9 +40,9 @@ _**NOTE: these commands must be run from the `<cugraph_root>/benchmarks` directo
(rapids) user@machine:/cugraph/benchmarks> pytest -x
```

* Run all the benchmarks but do not reinit RMM with different configurations
* Run all the benchmarks and allow RMM to reinit with different configurations
```
(rapids) user@machine:/cugraph/benchmarks> pytest --no-rmm-reinit
(rapids) user@machine:/cugraph/benchmarks> pytest --allow-rmm-reinit
```

* Show what benchmarks would be run with the given options, but do not run them
Expand Down
Loading

0 comments on commit b7effbb

Please sign in to comment.