Skip to content

Commit 9ebe4b4

Browse files
committed
Added cuml, raft-dask
1 parent 348471d commit 9ebe4b4

File tree

3 files changed

+80
-23
lines changed

3 files changed

+80
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ dask
22
distributed
33
cudf
44
dask-cuda
5+
packages

scripts/install.sh

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,59 @@ DASK_VERSION=main
1111
uv pip install --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple \
1212
--overrides=requirements/overrides.txt \
1313
--prerelease allow \
14+
"cuml-${RAPIDS_PY_CUDA_SUFFIX}[test]" \
1415
"cudf-${RAPIDS_PY_CUDA_SUFFIX}" \
1516
"dask-cudf-${RAPIDS_PY_CUDA_SUFFIX}" \
17+
"raft-dask-${RAPIDS_PY_CUDA_SUFFIX}" \
1618
"ucx-py-${RAPIDS_PY_CUDA_SUFFIX}" \
1719
"ucxx-${RAPIDS_PY_CUDA_SUFFIX}" \
1820
"scipy" \
1921
"dask-cuda"
2022

23+
# packages holds all the downstream and upstream dependencies.
24+
# we want to avoid directories with the same name as packages
25+
# in the working directory
26+
mkdir -p packages
27+
2128
# Clone cudf repo for tests
2229
CUDF_VERSION="branch-25.04"
30+
2331
cudf_commit=$(./scripts/check-version.py cudf)
2432

2533
if [ ! -d "cudf" ]; then
2634
echo "Cloning cudf@{$CUDF_VERSION}"
27-
git clone https://github.com/rapidsai/cudf.git --branch $CUDF_VERSION
35+
git clone https://github.com/rapidsai/cudf.git --branch $CUDF_VERSION packages
2836
fi
2937

30-
pushd cudf
38+
pushd packages/cudf
3139
git checkout $cudf_commit
3240
popd
3341

42+
cuml_commit=$(./scripts/check-version.py cuml)
43+
44+
if [ ! -d "cuml" ]; then
45+
echo "Cloning cuml@{$CUDF_VERSION}"
46+
git clone https://github.com/rapidsai/cuml.git --branch $CUDF_VERSION packages
47+
fi
48+
49+
pushd packages/cuml
50+
git checkout $cuml_commit
51+
popd
52+
53+
raft_commit=$(./scripts/check-version.py raft_dask)
54+
55+
if [ ! -d "raft" ]; then
56+
echo "Cloning raft@{$CUDF_VERSION}"
57+
git clone https://github.com/rapidsai/raft.git --branch $CUDF_VERSION packages
58+
fi
59+
60+
pushd packages/raft
61+
git checkout $raft_commit
62+
popd
63+
3464
if [ ! -d "dask-cuda" ]; then
3565
echo "Cloning cudf@{$CUDF_VERSION}"
36-
git clone https://github.com/rapidsaicudf_commit/dask-cuda.git --branch $CUDF_VERSION
66+
git clone https://github.com/rapidsaicudf_commit/dask-cuda.git --branch $CUDF_VERSION packages
3767
fi
3868

3969
# Clone dask-cuda for tests
@@ -42,32 +72,32 @@ fi
4272

4373
# dask_cuda_commit=$(./scripts/check-version.py dask_cuda)
4474

45-
pushd dask-cuda
75+
pushd packages/dask-cuda
4676
git checkout $CUDF_VERSION
4777
popd
4878

4979
# depth needs to be sufficient to reach the last tag, so that the package
5080
# versions are set correctly
5181
if [ ! -d "dask" ]; then
5282
echo "Cloning dask@{$DASK_VERSION}"
53-
git clone https://github.com/dask/dask --depth 100 --branch $DASK_VERSION
83+
git clone https://github.com/dask/dask --depth 100 --branch $DASK_VERSION packages
5484
fi
5585

5686
if [ ! -d "distributed" ]; then
5787
echo "Cloning dask@{$DASK_VERSION}"
58-
git clone https://github.com/dask/distributed --depth 100 --branch $DASK_VERSION
88+
git clone https://github.com/dask/distributed --depth 100 --branch $DASK_VERSION packages
5989
fi
6090

61-
pushd dask
91+
pushd packages/dask
6292
git checkout $DASK_VERSION
6393
popd
6494

65-
pushd distributed
95+
pushd packages/distributed
6696
git checkout $DASK_VERSION
6797
popd
6898

6999
# Finally, ensure that
70-
uv pip install --no-deps -e ./dask ./distributed
100+
uv pip install --no-deps -e ./packages/dask ./packages/distributed
71101

72102
echo "[Setup done]"
73103
uv pip list

scripts/test.sh

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,27 @@
22
# SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION & AFFILIATES.
33

44
if [ $# -eq 0 ]; then
5+
run_cuml=true
56
run_dask=true
67
run_dask_cuda=true
78
run_dask_cudf=true
89
run_distributed=true
10+
run_raft_dask=true
911
else
12+
run_cuml=false
1013
run_dask=false
1114
run_dask_cuda=false
1215
run_dask_cudf=false
1316
run_distributed=false
17+
run_raft_dask=false
1418
fi
1519

1620
# Parse command-line arguments
1721
while [[ $# -gt 0 ]]; do
1822
case "$1" in
23+
--cuml-only)
24+
run_cuml=true
25+
;;
1926
--dask-only)
2027
run_dask=true
2128
;;
@@ -28,6 +35,9 @@ while [[ $# -gt 0 ]]; do
2835
--distributed-only)
2936
run_distributed=true
3037
;;
38+
--raft-dask-only)
39+
run_raft_dask=true
40+
;;
3141
--help)
3242
echo "Usage: $0 [--dask-only] [--distributed-only] [--dask-cuda-only] [--dask-cudf-only]"
3343
exit 0
@@ -42,65 +52,81 @@ done
4252

4353
exit_code=0;
4454

55+
# --- cuml ---
56+
if $run_cuml; then
57+
58+
echo "[testing cuml]"
59+
pytest -v packages/cuml/python/cuml/cuml/tests/dask
60+
61+
if [[ $? -ne 0 ]]; then
62+
exit_code=1
63+
fi
64+
65+
fi
66+
67+
4568
# --- dask-cudf ---
4669
if $run_dask_cudf; then
4770

4871
echo "[testing dask-cudf]"
49-
pushd cudf/python/dask_cudf || exit 1
50-
pytest -v dask_cudf
72+
pytest -v packages/cudf/python/dask_cudf
5173

5274
if [[ $? -ne 0 ]]; then
5375
exit_code=1
5476
fi
5577

56-
popd || exit 1
57-
5878
fi
5979

6080
# --- dask-cuda ---
6181

6282
if $run_dask_cuda; then
6383
echo "[testing dask-cuda]"
64-
pushd dask-cuda/dask_cuda/tests || exit 1
65-
pytest -v .
84+
pytest -v packages/dask-cuda/dask_cuda/tests
6685

6786
if [[ $? -ne 0 ]]; then
6887
exit_code=1
6988
fi
7089

71-
popd || exit 1
7290
fi
7391

7492
# --- dask ---
7593

7694
if $run_dask; then
7795

7896
echo "[testing dask]"
79-
pushd dask/dask || exit 1
80-
pytest -v -m gpu .
97+
pytest -v -m gpu packages/dask/dask
8198

8299
if [[ $? -ne 0 ]]; then
83100
exit_code=1
84101
fi
85102

86-
popd || exit 1
103+
fi
104+
105+
# --- raft-dask ---
106+
if $run_raft_dask; then
107+
108+
echo "[testing raft-dask]"
109+
pytest -v packages/raft/python/raft-dask/raft_dask/tests
110+
111+
if [[ $? -ne 0 ]]; then
112+
exit_code=1
113+
fi
87114

88115
fi
89116

117+
118+
90119
# --- distributed ---
91120

92121
if $run_distributed; then
93122

94123
echo "[testing distributed]"
95-
pushd distributed || exit 1
96-
pytest -v -m gpu --runslow distributed
124+
pytest -v -m gpu --runslow packages/distributed/distributed
97125

98126
if [[ $? -ne 0 ]]; then
99127
exit_code=1
100128
fi
101129

102-
popd || exit 1
103-
104130
fi
105131

106132
exit $exit_code

0 commit comments

Comments
 (0)