Skip to content

Commit 091f906

Browse files
authored
Merge pull request #3458 from rapidsai/branch-23.04
[RELEASE] cugraph v23.04
2 parents 450c25b + 72cffc1 commit 091f906

649 files changed

Lines changed: 28515 additions & 38930 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

.github/workflows/build.yaml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
jobs:
2929
cpp-build:
3030
secrets: inherit
31-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-build.yaml@branch-23.02
31+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-build.yaml@branch-23.04
3232
with:
3333
build_type: ${{ inputs.build_type || 'branch' }}
3434
branch: ${{ inputs.branch }}
@@ -37,7 +37,7 @@ jobs:
3737
python-build:
3838
needs: [cpp-build]
3939
secrets: inherit
40-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@branch-23.02
40+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@branch-23.04
4141
with:
4242
build_type: ${{ inputs.build_type || 'branch' }}
4343
branch: ${{ inputs.branch }}
@@ -46,15 +46,26 @@ jobs:
4646
upload-conda:
4747
needs: [cpp-build, python-build]
4848
secrets: inherit
49-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-upload-packages.yaml@branch-23.02
49+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-upload-packages.yaml@branch-23.04
5050
with:
5151
build_type: ${{ inputs.build_type || 'branch' }}
5252
branch: ${{ inputs.branch }}
5353
date: ${{ inputs.date }}
5454
sha: ${{ inputs.sha }}
55+
docs-build:
56+
if: github.ref_type == 'branch' && github.event_name == 'push'
57+
needs: python-build
58+
secrets: inherit
59+
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.04
60+
with:
61+
build_type: branch
62+
node_type: "gpu-latest-1"
63+
arch: "amd64"
64+
container_image: "rapidsai/ci:latest"
65+
run_script: "ci/build_docs.sh"
5566
wheel-build-pylibcugraph:
5667
secrets: inherit
57-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.02
68+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.04
5869
with:
5970
build_type: ${{ inputs.build_type || 'branch' }}
6071
branch: ${{ inputs.branch }}
@@ -67,14 +78,15 @@ jobs:
6778
# the CMake variables in get_cumlprims_mg.cmake since CMake will just use
6879
# the clone as is.
6980
extra-repo: rapidsai/cugraph-ops
70-
extra-repo-sha: branch-23.02
81+
extra-repo-sha: branch-23.04
7182
extra-repo-deploy-key: CUGRAPH_OPS_SSH_PRIVATE_DEPLOY_KEY
7283

7384
skbuild-configure-options: "-DDETECT_CONDA_ENV=OFF -DCUGRAPH_BUILD_WHEELS=ON -DFIND_CUGRAPH_CPP=OFF -DCPM_cugraph-ops_SOURCE=/project/cugraph-ops/"
85+
uses-setup-env-vars: false
7486
wheel-publish-pylibcugraph:
7587
needs: wheel-build-pylibcugraph
7688
secrets: inherit
77-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-publish.yml@branch-23.02
89+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-publish.yml@branch-23.04
7890
with:
7991
build_type: ${{ inputs.build_type || 'branch' }}
8092
branch: ${{ inputs.branch }}
@@ -84,7 +96,7 @@ jobs:
8496
wheel-build-cugraph:
8597
needs: wheel-publish-pylibcugraph
8698
secrets: inherit
87-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.02
99+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.04
88100
with:
89101
build_type: ${{ inputs.build_type || 'branch' }}
90102
branch: ${{ inputs.branch }}
@@ -97,14 +109,15 @@ jobs:
97109
# the CMake variables in get_cumlprims_mg.cmake since CMake will just use
98110
# the clone as is.
99111
extra-repo: rapidsai/cugraph-ops
100-
extra-repo-sha: branch-23.02
112+
extra-repo-sha: branch-23.04
101113
extra-repo-deploy-key: CUGRAPH_OPS_SSH_PRIVATE_DEPLOY_KEY
102114

103115
skbuild-configure-options: "-DDETECT_CONDA_ENV=OFF -DCUGRAPH_BUILD_WHEELS=ON -DFIND_CUGRAPH_CPP=OFF -DCPM_cugraph-ops_SOURCE=/project/cugraph-ops/"
116+
uses-setup-env-vars: false
104117
wheel-publish-cugraph:
105118
needs: wheel-build-cugraph
106119
secrets: inherit
107-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-publish.yml@branch-23.02
120+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-publish.yml@branch-23.04
108121
with:
109122
build_type: ${{ inputs.build_type || 'branch' }}
110123
branch: ${{ inputs.branch }}

.github/workflows/pr.yaml

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,96 +18,112 @@ jobs:
1818
- conda-notebook-tests
1919
- conda-python-build
2020
- conda-python-tests
21+
- docs-build
2122
- wheel-build-pylibcugraph
2223
- wheel-tests-pylibcugraph
2324
- wheel-build-cugraph
2425
- wheel-tests-cugraph
2526
secrets: inherit
26-
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@branch-23.02
27+
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@branch-23.04
2728
checks:
2829
secrets: inherit
29-
uses: rapidsai/shared-action-workflows/.github/workflows/checks.yaml@branch-23.02
30+
uses: rapidsai/shared-action-workflows/.github/workflows/checks.yaml@branch-23.04
31+
with:
32+
enable_check_generated_files: false
3033
conda-cpp-build:
3134
needs: checks
3235
secrets: inherit
33-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-build.yaml@branch-23.02
36+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-build.yaml@branch-23.04
3437
with:
3538
build_type: pull-request
3639
node_type: cpu16
3740
conda-cpp-tests:
3841
needs: conda-cpp-build
3942
secrets: inherit
40-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-tests.yaml@branch-23.02
43+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-tests.yaml@branch-23.04
4144
with:
4245
build_type: pull-request
4346
conda-python-build:
4447
needs: conda-cpp-build
4548
secrets: inherit
46-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@branch-23.02
49+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-build.yaml@branch-23.04
4750
with:
4851
build_type: pull-request
4952
conda-python-tests:
5053
needs: conda-python-build
5154
secrets: inherit
52-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@branch-23.02
55+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@branch-23.04
5356
with:
5457
build_type: pull-request
5558
conda-notebook-tests:
5659
needs: conda-python-build
5760
secrets: inherit
58-
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.02
61+
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.04
5962
with:
6063
build_type: pull-request
6164
node_type: "gpu-latest-1"
6265
arch: "amd64"
6366
container_image: "rapidsai/ci:latest"
6467
run_script: "ci/test_notebooks.sh"
68+
docs-build:
69+
needs: conda-python-build
70+
secrets: inherit
71+
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.04
72+
with:
73+
build_type: pull-request
74+
node_type: "gpu-latest-1"
75+
arch: "amd64"
76+
container_image: "rapidsai/ci:latest"
77+
run_script: "ci/build_docs.sh"
6578
wheel-build-pylibcugraph:
6679
needs: checks
6780
secrets: inherit
68-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.02
81+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.04
6982
with:
7083
build_type: pull-request
7184
package-name: pylibcugraph
7285
package-dir: python/pylibcugraph
7386
extra-repo: rapidsai/cugraph-ops
74-
extra-repo-sha: branch-23.02
87+
extra-repo-sha: branch-23.04
7588
extra-repo-deploy-key: CUGRAPH_OPS_SSH_PRIVATE_DEPLOY_KEY
7689
skbuild-configure-options: "-DDETECT_CONDA_ENV=OFF -DCUGRAPH_BUILD_WHEELS=ON -DFIND_CUGRAPH_CPP=OFF -DCPM_cugraph-ops_SOURCE=/project/cugraph-ops/"
90+
uses-setup-env-vars: false
7791
wheel-tests-pylibcugraph:
7892
needs: wheel-build-pylibcugraph
7993
secrets: inherit
80-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.02
94+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.04
8195
with:
8296
build_type: pull-request
8397
package-name: pylibcugraph
8498
# On arm also need to install cupy from the specific webpage.
85-
test-before-arm64: "pip install cupy-cuda11x -f https://pip.cupy.dev/aarch64"
99+
test-before-arm64: "pip install 'cupy-cuda11x<12.0.0' -f https://pip.cupy.dev/aarch64"
86100
test-unittest: "RAPIDS_DATASET_ROOT_DIR=./datasets pytest -v ./python/pylibcugraph/pylibcugraph/tests"
87101
test-smoketest: "python ci/wheel_smoke_test_pylibcugraph.py"
88102
wheel-build-cugraph:
89103
needs: wheel-tests-pylibcugraph
90104
secrets: inherit
91-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.02
105+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.04
92106
with:
93107
build_type: pull-request
94108
package-name: cugraph
95109
package-dir: python/cugraph
96110
extra-repo: rapidsai/cugraph-ops
97-
extra-repo-sha: branch-23.02
111+
extra-repo-sha: branch-23.04
98112
extra-repo-deploy-key: CUGRAPH_OPS_SSH_PRIVATE_DEPLOY_KEY
99113
before-wheel: "RAPIDS_PY_WHEEL_NAME=pylibcugraph_cu11 rapids-download-wheels-from-s3 ./local-wheelhouse"
100114
skbuild-configure-options: "-DDETECT_CONDA_ENV=OFF -DCUGRAPH_BUILD_WHEELS=ON -DFIND_CUGRAPH_CPP=OFF -DCPM_cugraph-ops_SOURCE=/project/cugraph-ops/"
115+
uses-setup-env-vars: false
101116
wheel-tests-cugraph:
102117
needs: wheel-build-cugraph
103118
secrets: inherit
104-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.02
119+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.04
105120
with:
106121
build_type: pull-request
107122
package-name: cugraph
108123
# Always want to test against latest dask/distributed.
109-
test-before-amd64: "cd ./datasets && bash ./get_test_data.sh && cd - && RAPIDS_PY_WHEEL_NAME=pylibcugraph_cu11 rapids-download-wheels-from-s3 ./local-pylibcugraph-dep && pip install --no-deps ./local-pylibcugraph-dep/*.whl && pip install git+https://github.com/dask/dask.git@2023.1.1 git+https://github.com/dask/distributed.git@2023.1.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.02"
124+
test-before-amd64: "cd ./datasets && bash ./get_test_data.sh && cd - && RAPIDS_PY_WHEEL_NAME=pylibcugraph_cu11 rapids-download-wheels-from-s3 ./local-pylibcugraph-dep && pip install --no-deps ./local-pylibcugraph-dep/*.whl && pip install git+https://github.com/dask/dask.git@2023.3.2 git+https://github.com/dask/distributed.git@2023.3.2.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.04"
125+
# Skip dataset downloads on arm to save CI time -- arm only runs smoke tests.
110126
# On arm also need to install cupy from the specific site.
111-
test-before-arm64: "RAPIDS_PY_WHEEL_NAME=pylibcugraph_cu11 rapids-download-wheels-from-s3 ./local-pylibcugraph-dep && pip install --no-deps ./local-pylibcugraph-dep/*.whl && pip install cupy-cuda11x -f https://pip.cupy.dev/aarch64 && pip install git+https://github.com/dask/dask.git@2023.1.1 git+https://github.com/dask/distributed.git@2023.1.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.02"
112-
test-unittest: "RAPIDS_DATASET_ROOT_DIR=/__w/cugraph/cugraph/datasets pytest -v ./python/cugraph/cugraph/tests --ignore=./python/cugraph/cugraph/tests/mg"
127+
test-before-arm64: "RAPIDS_PY_WHEEL_NAME=pylibcugraph_cu11 rapids-download-wheels-from-s3 ./local-pylibcugraph-dep && pip install --no-deps ./local-pylibcugraph-dep/*.whl && pip install 'cupy-cuda11x<12.0.0' -f https://pip.cupy.dev/aarch64 && pip install git+https://github.com/dask/dask.git@2023.3.2 git+https://github.com/dask/distributed.git@2023.3.2.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.04"
128+
test-unittest: "RAPIDS_DATASET_ROOT_DIR=/__w/cugraph/cugraph/datasets pytest -v -m sg ./python/cugraph/cugraph/tests"
113129
test-smoketest: "python ci/wheel_smoke_test_cugraph.py"

.github/workflows/test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,43 @@ on:
1616
jobs:
1717
conda-cpp-tests:
1818
secrets: inherit
19-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-tests.yaml@branch-23.02
19+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-cpp-tests.yaml@branch-23.04
2020
with:
2121
build_type: nightly
2222
branch: ${{ inputs.branch }}
2323
date: ${{ inputs.date }}
2424
sha: ${{ inputs.sha }}
2525
conda-python-tests:
2626
secrets: inherit
27-
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@branch-23.02
27+
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@branch-23.04
2828
with:
2929
build_type: nightly
3030
branch: ${{ inputs.branch }}
3131
date: ${{ inputs.date }}
3232
sha: ${{ inputs.sha }}
3333
wheel-tests-pylibcugraph:
3434
secrets: inherit
35-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.02
35+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.04
3636
with:
3737
build_type: nightly
3838
branch: ${{ inputs.branch }}
3939
date: ${{ inputs.date }}
4040
sha: ${{ inputs.sha }}
4141
package-name: pylibcugraph
4242
# On arm also need to install cupy from the specific webpage.
43-
test-before-arm64: "pip install cupy-cuda11x -f https://pip.cupy.dev/aarch64"
43+
test-before-arm64: "pip install 'cupy-cuda11x<12.0.0' -f https://pip.cupy.dev/aarch64"
4444
test-unittest: "RAPIDS_DATASET_ROOT_DIR=./datasets pytest -v ./python/pylibcugraph/pylibcugraph/tests"
4545
wheel-tests-cugraph:
4646
secrets: inherit
47-
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.02
47+
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-test.yml@branch-23.04
4848
with:
4949
build_type: nightly
5050
branch: ${{ inputs.branch }}
5151
date: ${{ inputs.date }}
5252
sha: ${{ inputs.sha }}
5353
package-name: cugraph
5454
# Always want to test against latest dask/distributed.
55-
test-before-amd64: "cd ./datasets && bash ./get_test_data.sh && cd - && pip install git+https://github.com/dask/dask.git@2023.1.1 git+https://github.com/dask/distributed.git@2023.1.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.02"
55+
test-before-amd64: "cd ./datasets && bash ./get_test_data.sh && cd - && pip install git+https://github.com/dask/dask.git@2023.3.2 git+https://github.com/dask/distributed.git@2023.3.2.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.04"
5656
# On arm also need to install cupy from the specific webpage.
57-
test-before-arm64: "cd ./datasets && bash ./get_test_data.sh && cd - && pip install cupy-cuda11x -f https://pip.cupy.dev/aarch64 && pip install git+https://github.com/dask/dask.git@2023.1.1 git+https://github.com/dask/distributed.git@2023.1.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.02"
58-
test-unittest: "RAPIDS_DATASET_ROOT_DIR=/__w/cugraph/cugraph/datasets pytest -v ./python/cugraph/cugraph/tests --ignore=./python/cugraph/cugraph/tests/mg"
57+
test-before-arm64: "cd ./datasets && bash ./get_test_data.sh && cd - && pip install 'cupy-cuda11x<12.0.0' -f https://pip.cupy.dev/aarch64 && pip install git+https://github.com/dask/dask.git@2023.3.2 git+https://github.com/dask/distributed.git@2023.3.2.1 git+https://github.com/rapidsai/dask-cuda.git@branch-23.04"
58+
test-unittest: "RAPIDS_DATASET_ROOT_DIR=/__w/cugraph/cugraph/datasets pytest -v -m sg ./python/cugraph/cugraph/tests"

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ __pycache__
1414
*~
1515
DartConfiguration.tcl
1616
.DS_Store
17+
rmm_log.txt
1718

1819
# Unit test / coverage reports
1920
htmlcov/
@@ -71,6 +72,7 @@ cpp/thirdparty/googletest/
7172
## Datasets
7273
datasets/*
7374
!datasets/cyber.csv
75+
!datasets/get_test_data.sh
7476
!datasets/karate-data.csv
7577
!datasets/karate_undirected.csv
7678
!datasets/karate-disjoint.csv
@@ -93,3 +95,5 @@ python/cugraph/cugraph/tests/dask-worker-space
9395

9496
# Sphinx docs & build artifacts
9597
docs/cugraph/source/api_docs/api/*
98+
_html
99+
_text

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ repos:
1414
hooks:
1515
- id: black
1616
language_version: python3
17-
exclude: versioneer.py
1817
args: [--target-version=py38]
1918
files: ^python/
2019
- repo: https://github.com/PyCQA/flake8
2120
rev: 6.0.0
2221
hooks:
2322
- id: flake8
24-
args: ["--config=setup.cfg"]
23+
args: ["--config=.flake8"]
2524
files: python/.*$
2625
types: [file]
2726
types_or: [python] # TODO: Enable [python, cython]
@@ -51,3 +50,8 @@ repos:
5150
language: python
5251
pass_filenames: false
5352
additional_dependencies: [gitpython]
53+
- repo: https://github.com/rapidsai/dependency-file-generator
54+
rev: v1.5.1
55+
hooks:
56+
- id: rapids-dependency-file-generator
57+
args: ["--clean"]

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
<div align="center">
77

8-
[![Build Status](https://gpuci.gpuopenanalytics.com/job/rapidsai/job/gpuci/job/cugraph/job/branches/job/cugraph-branch-pipeline/badge/icon)](https://gpuci.gpuopenanalytics.com/job/rapidsai/job/gpuci/job/cugraph/job/branches/job/cugraph-branch-pipeline/)
98
<a href="https://github.com/rapidsai/cugraph/blob/main/LICENSE">
109
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License"></a>
1110
<img alt="GitHub tag (latest by date)" src="https://img.shields.io/github/v/tag/rapidsai/cugraph">
@@ -105,7 +104,7 @@ df_page.sort_values('pagerank', ascending=False).head(10)
105104

106105
</br>
107106

108-
[Why cuGraph does not support Method Cascading]()
107+
[Why cuGraph does not support Method Cascading](https://docs.rapids.ai/api/cugraph/nightly/basics/cugraph_cascading.html)
109108

110109

111110

@@ -137,4 +136,4 @@ For more project details, see [rapids.ai](https://rapids.ai/).
137136
<br><br>
138137
### Apache Arrow on GPU <a name="arrow"></a>
139138

140-
The GPU version of [Apache Arrow](https://arrow.apache.org/) is a common API that enables efficient interchange of tabular data between processes running on the GPU. End-to-end computation on the GPU avoids unnecessary copying and converting of data off the GPU, reducing compute time and cost for high-performance analytics common in artificial intelligence workloads. As the name implies, cuDF uses the Apache Arrow columnar data format on the GPU. Currently, a subset of the features in Apache Arrow are supported.
139+
The GPU version of [Apache Arrow](https://arrow.apache.org/) is a common API that enables efficient interchange of tabular data between processes running on the GPU. End-to-end computation on the GPU avoids unnecessary copying and converting of data off the GPU, reducing compute time and cost for high-performance analytics common in artificial intelligence workloads. As the name implies, cuDF uses the Apache Arrow columnar data format on the GPU. Currently, a subset of the features in Apache Arrow are supported.

benchmarks/cugraph-dgl/notebooks/get_node_storage.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"import cupy as cp\n",
3333
"\n",
3434
"#TODO: Enable in torch nightly\n",
35-
"# torch.cuda.memory.change_current_allocator(rmm.rmm_torch_allocator)\n",
35+
"# from rmm.allocators.torch import rmm_torch_allocator\n",
36+
"# torch.cuda.memory.change_current_allocator(rmm_torch_allocator)\n",
3637
" \n",
3738
"import cugraph_dgl\n",
3839
"from dgl.data import AsNodePredDataset\n",
@@ -92,8 +93,9 @@
9293
" client = Client(cluster)\n",
9394
" Comms.initialize(p2p=True)\n",
9495
"else:\n",
96+
" from rmm.allocators.torch import rmm_torch_allocator\n",
9597
" rmm.reinitialize(pool_allocator=True, initial_pool_size=5e9, maximum_pool_size=20e9)\n",
96-
" torch.cuda.memory.change_current_allocator(rmm.rmm_torch_allocator)"
98+
" torch.cuda.memory.change_current_allocator(rmm_torch_allocator)"
9799
]
98100
},
99101
{

0 commit comments

Comments
 (0)