|
4 | 4 | set -eoxu pipefail |
5 | 5 |
|
6 | 6 | package_name="cugraph-pyg" |
7 | | -package_dir="python/cugraph-pyg" |
8 | | - |
9 | | -python_package_name=$(echo ${package_name}|sed 's/-/_/g') |
10 | 7 |
|
11 | 8 | mkdir -p ./dist |
12 | 9 | RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" |
13 | 10 |
|
14 | | -# Download wheels built during this job. |
| 11 | +# Download the pylibcugraph, cugraph, and cugraph-pyg built in the previous step |
15 | 12 | RAPIDS_PY_WHEEL_NAME="pylibcugraph_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./local-deps |
16 | 13 | RAPIDS_PY_WHEEL_NAME="cugraph_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./local-deps |
17 | | -python -m pip install ./local-deps/*.whl |
18 | | - |
19 | | -# use 'ls' to expand wildcard before adding `[extra]` requires for pip |
20 | 14 | RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" RAPIDS_PY_WHEEL_PURE="1" rapids-download-wheels-from-s3 ./dist |
21 | | -# pip creates wheels using python package names |
22 | | -python -m pip install $(ls ./dist/${python_package_name}*.whl)[test] |
23 | | - |
24 | | -# RAPIDS_DATASET_ROOT_DIR is used by test scripts |
25 | | -export RAPIDS_DATASET_ROOT_DIR="$(realpath datasets)" |
26 | | - |
27 | | -# Used to skip certain examples in CI due to memory limitations |
28 | | -export CI_RUN=1 |
29 | 15 |
|
| 16 | +# determine pytorch and pyg sources |
30 | 17 | if [[ "${CUDA_VERSION}" == "11.8.0" ]]; then |
31 | 18 | PYTORCH_URL="https://download.pytorch.org/whl/cu118" |
32 | 19 | PYG_URL="https://data.pyg.org/whl/torch-2.3.0+cu118.html" |
33 | 20 | else |
34 | 21 | PYTORCH_URL="https://download.pytorch.org/whl/cu121" |
35 | 22 | PYG_URL="https://data.pyg.org/whl/torch-2.3.0+cu121.html" |
36 | 23 | fi |
37 | | -rapids-logger "Installing PyTorch and PyG dependencies" |
38 | | -rapids-retry python -m pip install torch==2.3.0 --index-url ${PYTORCH_URL} |
39 | | -rapids-retry python -m pip install "torch-geometric>=2.5,<2.6" |
40 | | -rapids-retry python -m pip install \ |
41 | | - ogb \ |
42 | | - pyg_lib \ |
43 | | - torch_scatter \ |
44 | | - torch_sparse \ |
45 | | - -f ${PYG_URL} |
| 24 | + |
| 25 | +# echo to expand wildcard before adding `[extra]` requires for pip |
| 26 | +python -m pip install \ |
| 27 | + -v \ |
| 28 | + --extra-index-url "${PYTORCH_URL}" \ |
| 29 | + --find-links "${PYG_URL}" \ |
| 30 | + "$(echo ./local-deps/pylibcugraph_${RAPIDS_PY_CUDA_SUFFIX}*.whl)" \ |
| 31 | + "$(echo ./local-deps/cugraph_${RAPIDS_PY_CUDA_SUFFIX}*.whl)" \ |
| 32 | + "$(echo ./dist/cugraph_pyg_${RAPIDS_PY_CUDA_SUFFIX}*.whl)[test]" \ |
| 33 | + 'ogb' \ |
| 34 | + 'pyg_lib' \ |
| 35 | + 'torch>=2.3.0,<2.4' \ |
| 36 | + 'torch-geometric>=2.5,<2.6' \ |
| 37 | + 'torch_scatter' \ |
| 38 | + 'torch_sparse' |
| 39 | + |
| 40 | +# RAPIDS_DATASET_ROOT_DIR is used by test scripts |
| 41 | +export RAPIDS_DATASET_ROOT_DIR="$(realpath datasets)" |
| 42 | + |
| 43 | +# Used to skip certain examples in CI due to memory limitations |
| 44 | +export CI_RUN=1 |
46 | 45 |
|
47 | 46 | rapids-logger "pytest cugraph-pyg (single GPU)" |
48 | 47 | pushd python/cugraph-pyg/cugraph_pyg |
|
0 commit comments