-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'branch-23.04' into groupby-apply-caching
- Loading branch information
Showing
243 changed files
with
6,903 additions
and
12,779 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2017-2023, NVIDIA CORPORATION. | ||
|
||
[flake8] | ||
filename = *.py, *.pyx, *.pxd, *.pxi | ||
exclude = __init__.py, *.egg, build, docs, .git | ||
force-check = True | ||
ignore = | ||
# line break before binary operator | ||
W503, | ||
# whitespace before : | ||
E203 | ||
per-file-ignores = | ||
# Rules ignored only in Cython: | ||
# E211: whitespace before '(' (used in multi-line imports) | ||
# E225: Missing whitespace around operators (breaks cython casting syntax like <int>) | ||
# E226: Missing whitespace around arithmetic operators (breaks cython pointer syntax like int*) | ||
# E227: Missing whitespace around bitwise or shift operator (Can also break casting syntax) | ||
# E275: Missing whitespace after keyword (Doesn't work with Cython except?) | ||
# E402: invalid syntax (works for Python, not Cython) | ||
# E999: invalid syntax (works for Python, not Cython) | ||
# W504: line break after binary operator (breaks lines that end with a pointer) | ||
*.pyx: E211, E225, E226, E227, E275, E402, E999, W504 | ||
*.pxd: E211, E225, E226, E227, E275, E402, E999, W504 | ||
*.pxi: E211, E225, E226, E227, E275, E402, E999, W504 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -53,6 +53,17 @@ jobs: | |
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
skip_upload_pkgs: libcudf-example | ||
docs-build: | ||
if: github.ref_type == 'branch' && github.event_name == 'push' | ||
needs: python-build | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: branch | ||
node_type: "gpu-latest-1" | ||
arch: "amd64" | ||
container_image: "rapidsai/ci:latest" | ||
run_script: "ci/build_docs.sh" | ||
wheel-build-cudf: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
|
@@ -64,6 +75,7 @@ jobs: | |
package-name: cudf | ||
package-dir: python/cudf | ||
skbuild-configure-options: "-DCUDF_BUILD_WHEELS=ON -DDETECT_CONDA_ENV=OFF" | ||
uses-setup-env-vars: false | ||
wheel-publish-cudf: | ||
needs: wheel-build-cudf | ||
secrets: inherit | ||
|
@@ -85,6 +97,7 @@ jobs: | |
date: ${{ inputs.date }} | ||
package-name: dask_cudf | ||
package-dir: python/dask_cudf | ||
uses-setup-env-vars: false | ||
wheel-publish-dask-cudf: | ||
needs: wheel-build-dask-cudf | ||
secrets: inherit | ||
|
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ jobs: | |
- conda-python-other-tests | ||
- conda-java-tests | ||
- conda-notebook-tests | ||
- docs-build | ||
- wheel-build-cudf | ||
- wheel-tests-cudf | ||
- wheel-build-dask-cudf | ||
|
@@ -29,6 +30,8 @@ jobs: | |
checks: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
with: | ||
enable_check_generated_files: false | ||
conda-cpp-build: | ||
needs: checks | ||
secrets: inherit | ||
|
@@ -82,6 +85,16 @@ jobs: | |
arch: "amd64" | ||
container_image: "rapidsai/ci:latest" | ||
run_script: "ci/test_notebooks.sh" | ||
docs-build: | ||
needs: conda-python-build | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: pull-request | ||
node_type: "gpu-latest-1" | ||
arch: "amd64" | ||
container_image: "rapidsai/ci:latest" | ||
run_script: "ci/build_docs.sh" | ||
wheel-build-cudf: | ||
needs: checks | ||
secrets: inherit | ||
|
@@ -91,6 +104,7 @@ jobs: | |
package-name: cudf | ||
package-dir: python/cudf | ||
skbuild-configure-options: "-DCUDF_BUILD_WHEELS=ON -DDETECT_CONDA_ENV=OFF" | ||
uses-setup-env-vars: false | ||
wheel-tests-cudf: | ||
needs: wheel-build-cudf | ||
secrets: inherit | ||
|
@@ -99,9 +113,8 @@ jobs: | |
build_type: pull-request | ||
package-name: cudf | ||
# Install cupy-cuda11x for arm from a special index url | ||
# Install tokenizers last binary wheel to avoid a Rust compile from the latest sdist | ||
test-before-arm64: "pip install tokenizers==0.10.2 cupy-cuda11x -f https://pip.cupy.dev/aarch64" | ||
test-unittest: "pytest -v -n 8 ./python/cudf/cudf/tests" | ||
test-before-arm64: "python -m pip install cupy-cuda11x -f https://pip.cupy.dev/aarch64" | ||
test-unittest: "python -m pytest -v -n 8 ./python/cudf/cudf/tests" | ||
test-smoketest: "python ./ci/wheel_smoke_test_cudf.py" | ||
wheel-build-dask-cudf: | ||
needs: wheel-tests-cudf | ||
|
@@ -111,13 +124,14 @@ jobs: | |
build_type: pull-request | ||
package-name: dask_cudf | ||
package-dir: python/dask_cudf | ||
before-wheel: "RAPIDS_PY_WHEEL_NAME=cudf_cu11 rapids-download-wheels-from-s3 ./local-cudf && pip install --no-deps ./local-cudf/cudf*.whl" | ||
before-wheel: "RAPIDS_PY_WHEEL_NAME=cudf_cu11 rapids-download-wheels-from-s3 ./local-cudf && python -m pip install --no-deps ./local-cudf/cudf*.whl" | ||
uses-setup-env-vars: false | ||
wheel-tests-dask-cudf: | ||
needs: wheel-build-dask-cudf | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: pull-request | ||
package-name: dask_cudf | ||
test-before: "RAPIDS_PY_WHEEL_NAME=cudf_cu11 rapids-download-wheels-from-s3 ./local-cudf-dep && pip install --no-deps ./local-cudf-dep/cudf*.whl" | ||
test-unittest: "pytest -v -n 8 ./python/dask_cudf/dask_cudf/tests" | ||
test-before: "RAPIDS_PY_WHEEL_NAME=cudf_cu11 rapids-download-wheels-from-s3 ./local-cudf-dep && python -m pip install --no-deps ./local-cudf-dep/cudf*.whl" | ||
test-unittest: "python -m pytest -v -n 8 ./python/dask_cudf/dask_cudf/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 |
---|---|---|
|
@@ -22,6 +22,18 @@ jobs: | |
branch: ${{ inputs.branch }} | ||
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
conda-cpp-memcheck-tests: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: nightly | ||
branch: ${{ inputs.branch }} | ||
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
node_type: "gpu-latest-1" | ||
arch: "amd64" | ||
container_image: "rapidsai/ci:latest" | ||
run_script: "ci/test_cpp_memcheck.sh" | ||
conda-python-cudf-tests: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
|
@@ -74,8 +86,8 @@ jobs: | |
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
package-name: cudf | ||
test-before-arm64: "pip install tokenizers==0.10.2 cupy-cuda11x -f https://pip.cupy.dev/aarch64" | ||
test-unittest: "pytest -v -n 8 ./python/cudf/cudf/tests" | ||
test-before-arm64: "python -m pip install cupy-cuda11x -f https://pip.cupy.dev/aarch64" | ||
test-unittest: "python -m pytest -v -n 8 ./python/cudf/cudf/tests" | ||
wheel-tests-dask-cudf: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
|
@@ -85,4 +97,4 @@ jobs: | |
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
package-name: dask_cudf | ||
test-unittest: "pytest -v -n 8 ./python/dask_cudf/dask_cudf/tests" | ||
test-unittest: "python -m pytest -v -n 8 ./python/dask_cudf/dask_cudf/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
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,48 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
rapids-logger "Create test conda environment" | ||
. /opt/conda/etc/profile.d/conda.sh | ||
|
||
rapids-dependency-file-generator \ | ||
--output conda \ | ||
--file_key docs \ | ||
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml | ||
|
||
rapids-mamba-retry env create --force -f env.yaml -n docs | ||
conda activate docs | ||
|
||
rapids-print-env | ||
|
||
rapids-logger "Downloading artifacts from previous jobs" | ||
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) | ||
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python) | ||
VERSION_NUMBER=$(rapids-get-rapids-version-from-git) | ||
|
||
rapids-mamba-retry install \ | ||
--channel "${CPP_CHANNEL}" \ | ||
--channel "${PYTHON_CHANNEL}" \ | ||
libcudf cudf dask-cudf | ||
|
||
|
||
rapids-logger "Build Doxygen docs" | ||
pushd cpp/doxygen | ||
aws s3 cp s3://rapidsai-docs/librmm/${VERSION_NUMBER}/html/rmm.tag . || echo "Failed to download rmm Doxygen tag" | ||
doxygen Doxyfile | ||
popd | ||
|
||
rapids-logger "Build Sphinx docs" | ||
pushd docs/cudf | ||
sphinx-build -b dirhtml source _html | ||
sphinx-build -b text source _text | ||
popd | ||
|
||
|
||
if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then | ||
rapids-logger "Upload Docs to S3" | ||
aws s3 sync --no-progress --delete cpp/doxygen/html "s3://rapidsai-docs/libcudf/${VERSION_NUMBER}/html" | ||
aws s3 sync --no-progress --delete docs/cudf/_html "s3://rapidsai-docs/cudf/${VERSION_NUMBER}/html" | ||
aws s3 sync --no-progress --delete docs/cudf/_text "s3://rapidsai-docs/cudf/${VERSION_NUMBER}/txt" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION. | ||
# | ||
# Usage: bash apply_wheel_modifications.sh <new_version> <cuda_suffix> | ||
|
||
VERSION=${1} | ||
CUDA_SUFFIX=${2} | ||
|
||
# __init__.py versions | ||
sed -i "s/__version__ = .*/__version__ = \"${VERSION}\"/g" python/cudf/cudf/__init__.py | ||
sed -i "s/__version__ = .*/__version__ = \"${VERSION}\"/g" python/dask_cudf/dask_cudf/__init__.py | ||
sed -i "s/__version__ = .*/__version__ = \"${VERSION}\"/g" python/cudf_kafka/cudf_kafka/__init__.py | ||
sed -i "s/__version__ = .*/__version__ = \"${VERSION}\"/g" python/custreamz/custreamz/__init__.py | ||
|
||
# pyproject.toml versions | ||
sed -i "s/^version = .*/version = \"${VERSION}\"/g" python/cudf/pyproject.toml | ||
sed -i "s/^version = .*/version = \"${VERSION}\"/g" python/dask_cudf/pyproject.toml | ||
sed -i "s/^version = .*/version = \"${VERSION}\"/g" python/cudf_kafka/pyproject.toml | ||
sed -i "s/^version = .*/version = \"${VERSION}\"/g" python/custreamz/pyproject.toml | ||
|
||
# cudf pyproject.toml cuda suffixes | ||
sed -i "s/^name = \"cudf\"/name = \"cudf${CUDA_SUFFIX}\"/g" python/cudf/pyproject.toml | ||
sed -i "s/rmm/rmm${CUDA_SUFFIX}/g" python/cudf/pyproject.toml | ||
sed -i "s/ptxcompiler/ptxcompiler${CUDA_SUFFIX}/g" python/cudf/pyproject.toml | ||
sed -i "s/cubinlinker/cubinlinker${CUDA_SUFFIX}/g" python/cudf/pyproject.toml | ||
|
||
# dask_cudf pyproject.toml cuda suffixes | ||
sed -i "s/^name = \"dask_cudf\"/name = \"dask_cudf${CUDA_SUFFIX}\"/g" python/dask_cudf/pyproject.toml | ||
# Need to provide the == to avoid modifying the URL | ||
sed -i "s/\"cudf==/\"cudf${CUDA_SUFFIX}==/g" python/dask_cudf/pyproject.toml |
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
Oops, something went wrong.