-
Notifications
You must be signed in to change notification settings - Fork 3
Add cuml, raft-dask #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
048e564
Restructure files
TomAugspurger 9f5e80e
cleanup
TomAugspurger a51ccb2
cleanup
TomAugspurger 379b37a
restore the -e install
TomAugspurger 348471d
updated schedule to add a second run
TomAugspurger 9ebe4b4
Added cuml, raft-dask
TomAugspurger 3ea817f
remove unused DASK_VERSION variable
TomAugspurger b35b567
typo
TomAugspurger 02a4e81
use --quick_run for cuml
TomAugspurger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
| dask @ git+https://github.com/dask/dask.git@main | ||
| distributed @ git+https://github.com/dask/distributed.git@main |
This file contains hidden or 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,37 @@ | ||
| #!/usr/bin/env python | ||
| # SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION & AFFILIATES. | ||
| """ | ||
| Print the git commit a rapids package was built from. | ||
| """ | ||
|
|
||
| import argparse | ||
| import importlib | ||
| import sys | ||
| import importlib.resources | ||
|
|
||
|
|
||
| def parse_args(args=None): | ||
| parser = argparse.ArgumentParser(description=__doc__) | ||
| parser.add_argument("distribution", help="Package name to check.") | ||
|
|
||
| return parser.parse_args(args) | ||
|
|
||
|
|
||
| def main(args=None): | ||
| args = parse_args(args) | ||
| dist = args.distribution | ||
|
|
||
| try: | ||
| sha = importlib.resources.files(dist).joinpath("GIT_COMMIT").read_text().strip() | ||
| except ModuleNotFoundError: | ||
| print(f"Error: {dist} is not installed.", file=sys.stderr) | ||
| except FileNotFoundError: | ||
| print(f"Error: {dist} does not contain 'GIT_COMMIT' file.", file=sys.stderr) | ||
| else: | ||
| print(sha) | ||
| sys.exit(0) | ||
| sys.exit(1) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or 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,71 @@ | ||
| #!/usr/bin/env bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. | ||
| set -euo pipefail | ||
|
|
||
| # RAPIDS_CUDA_VERSION is like 12.15.1 | ||
| # We want cu12 | ||
| RAPIDS_PY_CUDA_SUFFIX=$(echo "cu${RAPIDS_CUDA_VERSION:-12.15.1}" | cut -d '.' -f 1) | ||
|
|
||
| DASK_VERSION=main | ||
|
|
||
| # Try | ||
| uv pip install --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple \ | ||
| --overrides=requirements/overrides.txt \ | ||
TomAugspurger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| --prerelease allow \ | ||
| "cudf-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "dask-cudf-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "ucx-py-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "ucxx-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "scipy" \ | ||
| "dask-cuda" | ||
|
|
||
| # Clone cudf repo for tests | ||
| CUDF_VERSION="branch-25.04" | ||
| cudf_commit=$(./scripts/check-version.py cudf) | ||
TomAugspurger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| if [ ! -d "cudf" ]; then | ||
| echo "Cloning cudf@{$CUDF_VERSION}" | ||
| git clone https://github.com/rapidsai/cudf.git --branch $CUDF_VERSION | ||
| fi | ||
|
|
||
| pushd cudf | ||
| git checkout $cudf_commit | ||
| popd | ||
|
|
||
| if [ ! -d "dask-cuda" ]; then | ||
| echo "Cloning cudf@{$CUDF_VERSION}" | ||
| git clone https://github.com/rapidsaicudf_commit/dask-cuda.git --branch $CUDF_VERSION | ||
| fi | ||
|
|
||
| # Clone dask-cuda for tests | ||
| # dask-cuda nightly wheels currently lack a __git_commit__. | ||
| # Looking into it, but for now just use the branch. | ||
|
|
||
| # dask_cuda_commit=$(./scripts/check-version.py dask_cuda) | ||
|
|
||
| pushd dask-cuda | ||
| git checkout $CUDF_VERSION | ||
| popd | ||
|
|
||
| # depth needs to be sufficient to reach the last tag, so that the package | ||
| # versions are set correctly | ||
| if [ ! -d "dask" ]; then | ||
| echo "Cloning dask@{$DASK_VERSION}" | ||
| git clone https://github.com/dask/dask --depth 100 --branch $DASK_VERSION | ||
| fi | ||
|
|
||
| if [ ! -d "distributed" ]; then | ||
| echo "Cloning dask@{$DASK_VERSION}" | ||
| git clone https://github.com/dask/distributed --depth 100 --branch $DASK_VERSION | ||
| fi | ||
|
|
||
| pushd dask | ||
TomAugspurger marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| git checkout $DASK_VERSION | ||
| popd | ||
|
|
||
| pushd distributed | ||
| git checkout $DASK_VERSION | ||
| popd | ||
|
|
||
TomAugspurger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| echo "[Setup done]" | ||
| uv pip list | ||
This file contains hidden or 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,4 @@ | ||
| # used to force installing dask / distributed main | ||
| # even if another package like rapids-dask-dependency wants something else | ||
| dask[test] @ git+https://github.com/dask/dask.git@main | ||
| distributed @ git+https://github.com/dask/distributed.git@main |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,63 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. | ||
|
|
||
| # Install | ||
| set -euo pipefail | ||
|
|
||
|
|
||
| # RAPIDS_CUDA_VERSION is like 12.15.1 | ||
| # We want cu12 | ||
| RAPIDS_PY_CUDA_SUFFIX=$(echo "cu${RAPIDS_CUDA_VERSION:-12.15.1}" | cut -d '.' -f 1) | ||
|
|
||
| # TODO: set this to main once dask-cudf is compatible | ||
| # DASK_VERSION=main | ||
| DASK_VERSION=main | ||
| export PIP_YES=true | ||
| export PIP_PRE=true | ||
|
|
||
| pip install --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple \ | ||
| "cudf-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "dask-cudf-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "ucx-py-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "ucxx-${RAPIDS_PY_CUDA_SUFFIX}" \ | ||
| "scipy" \ | ||
| "dask-cuda" | ||
|
|
||
|
|
||
| # Clone cudf repo for tests | ||
| CUDF_VERSION="branch-25.04" | ||
|
|
||
| if [ ! -d "cudf" ]; then | ||
| echo "Cloning cudf@{$CUDF_VERSION}" | ||
| git clone https://github.com/rapidsai/cudf.git --branch $CUDF_VERSION | ||
| fi | ||
|
|
||
| # Clone dask-cuda for tests | ||
|
|
||
| if [ ! -d "dask-cuda" ]; then | ||
| echo "Cloning cudf@{$CUDF_VERSION}" | ||
| git clone https://github.com/rapidsai/dask-cuda.git --branch $CUDF_VERSION | ||
| fi | ||
|
|
||
|
|
||
| # depth needs to be sufficient to reach the last tag, so that the package | ||
| # versions are set correctly | ||
| if [ ! -d "dask" ]; then | ||
| echo "Cloning dask@{$DASK_VERSION}" | ||
| git clone https://github.com/dask/dask --depth 100 --branch $DASK_VERSION | ||
| fi | ||
|
|
||
| if [ ! -d "distributed" ]; then | ||
| echo "Cloning dask@{$DASK_VERSION}" | ||
| git clone https://github.com/dask/distributed --depth 100 --branch $DASK_VERSION | ||
| fi | ||
|
|
||
| # Install everything, including any new dependencies | ||
| pip uninstall dask distributed | ||
| pip install -e ./dask[test] | ||
| pip install -e ./distributed | ||
|
|
||
| echo "[Setup done]" | ||
| pip list | ||
|
|
||
| ./scripts/setup.sh | ||
| ./scripts/install.sh | ||
| ./scripts/test.sh |
This file contains hidden or 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,9 @@ | ||
| #!/usr/bin/env bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. | ||
|
|
||
| # Install | ||
| set -euo pipefail | ||
|
|
||
| if ! command -v uv > /dev/null; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| fi |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.