-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #4061 Authors: - Tingyu Wang (https://github.com/tingyu66) Approvers: - Alex Barghi (https://github.com/alexbarghi-nv) - Jake Awe (https://github.com/AyodeAwe) URL: #4075
- Loading branch information
Showing
11 changed files
with
232 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
./ci/build_wheel.sh cugraph-dgl python/cugraph-dgl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
./ci/build_wheel.sh cugraph-pyg python/cugraph-pyg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
set -eoxu pipefail | ||
|
||
package_name="cugraph-dgl" | ||
package_dir="python/cugraph-dgl" | ||
|
||
python_package_name=$(echo ${package_name}|sed 's/-/_/g') | ||
|
||
mkdir -p ./dist | ||
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" | ||
|
||
# use 'ls' to expand wildcard before adding `[extra]` requires for pip | ||
RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./dist | ||
# pip creates wheels using python package names | ||
python -m pip install $(ls ./dist/${python_package_name}*.whl)[test] | ||
|
||
|
||
PKG_CUDA_VER="$(echo ${CUDA_VERSION} | cut -d '.' -f1,2 | tr -d '.')" | ||
PKG_CUDA_VER_MAJOR=${PKG_CUDA_VER:0:2} | ||
if [[ "${PKG_CUDA_VER_MAJOR}" == "12" ]]; then | ||
PYTORCH_CUDA_VER="121" | ||
else | ||
PYTORCH_CUDA_VER=$PKG_CUDA_VER | ||
fi | ||
PYTORCH_URL="https://download.pytorch.org/whl/cu${PYTORCH_CUDA_VER}" | ||
DGL_URL="https://data.dgl.ai/wheels/cu${PYTORCH_CUDA_VER}/repo.html" | ||
|
||
rapids-logger "Installing PyTorch and DGL" | ||
rapids-retry python -m pip install torch --index-url ${PYTORCH_URL} | ||
rapids-retry python -m pip install dgl --find-links ${DGL_URL} | ||
|
||
python -m pytest python/cugraph-dgl/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
set -eoxu pipefail | ||
|
||
package_name="cugraph-pyg" | ||
package_dir="python/cugraph-pyg" | ||
|
||
python_package_name=$(echo ${package_name}|sed 's/-/_/g') | ||
|
||
mkdir -p ./dist | ||
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" | ||
|
||
# use 'ls' to expand wildcard before adding `[extra]` requires for pip | ||
RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./dist | ||
# pip creates wheels using python package names | ||
python -m pip install $(ls ./dist/${python_package_name}*.whl)[test] | ||
|
||
# RAPIDS_DATASET_ROOT_DIR is used by test scripts | ||
export RAPIDS_DATASET_ROOT_DIR="$(realpath datasets)" | ||
|
||
if [[ "${CUDA_VERSION}" == "11.8.0" ]]; then | ||
rapids-logger "Installing PyTorch and PyG dependencies" | ||
PYTORCH_URL="https://download.pytorch.org/whl/cu118" | ||
rapids-retry python -m pip install torch==2.1.0 --index-url ${PYTORCH_URL} | ||
rapids-retry python -m pip install torch-geometric==2.4.0 | ||
rapids-retry python -m pip install \ | ||
pyg_lib \ | ||
torch_scatter \ | ||
torch_sparse \ | ||
torch_cluster \ | ||
torch_spline_conv \ | ||
-f https://data.pyg.org/whl/torch-2.1.0+cu118.html | ||
|
||
rapids-logger "pytest cugraph-pyg (single GPU)" | ||
python -m pytest \ | ||
--cache-clear \ | ||
--ignore=tests/int \ | ||
--ignore=tests/mg \ | ||
python/cugraph-pyg/cugraph_pyg/tests | ||
else | ||
rapids-logger "skipping cugraph-pyg wheel test on CUDA!=11.8" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters