Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@

set -euo pipefail

rapids-configure-conda-channels

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 thank you! Getting closer on rapidsai/gha-tools#145 😁


source rapids-configure-sccache

source rapids-date-string

source rapids-rattler-channel-string

CONDA_CONFIG_FILE="conda/recipes/versions.yaml"

rapids-print-env

rapids-logger "Build rapids-xgboost"

rapids-conda-retry build \
--variant-config-files "${CONDA_CONFIG_FILE}" \
conda/recipes/rapids-xgboost
rattler-build build --recipe conda/recipes/rapids-xgboost \
--variant-config "${CONDA_CONFIG_FILE}" \
"${RATTLER_ARGS[@]}" \
"${RATTLER_CHANNELS[@]}"

rapids-logger "Build rapids"

rapids-conda-retry build \
--variant-config-files "${CONDA_CONFIG_FILE}" \
conda/recipes/rapids
rattler-build build --recipe conda/recipes/rapids \
--variant-config "${CONDA_CONFIG_FILE}" \
"${RATTLER_ARGS[@]}" \
"${RATTLER_CHANNELS[@]}"
54 changes: 0 additions & 54 deletions conda/recipes/rapids-xgboost/meta.yaml

This file was deleted.

46 changes: 46 additions & 0 deletions conda/recipes/rapids-xgboost/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright (c) 2025, NVIDIA CORPORATION.
schema_version: 1

context:
rapids_version: ${{ env.get("GIT_DESCRIBE_TAG", default="0.0.0.dev") | replace("v", "")}}
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}

package:
name: rapids-xgboost
version: ${{ rapids_version }}

source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}

requirements:
host:
- cuda-version =${{ cuda_version }}
- pip
- python =${{ py_version }}
run:
- ${{ pin_compatible("cuda-version", upper_bound="x", lower_bound="x") }}
- nccl ${{ nccl_version }}
- python
- libxgboost ${{ xgboost_version }} rapidsai_h*
- xgboost ${{ xgboost_version }} rapidsai_py*
- if: cuda_major == "11"
then: cudatoolkit
ignore_run_exports:
by_name:
- python_abi
- if: cuda_major == "11"
then: cudatoolkit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- if: cuda_major == "11"
then: cudatoolkit

Now that CUDA 11 support is getting dropped on 25.08 (rapidsai/build-planning#184), I think we could safely drop all the if: cuda_major == "11" stuff in any files you're already touching in this PR.

Notice that there aren't any CUDA 11 builds at https://github.com/rapidsai/integration/actions/runs/15421036533/job/43395979955?pr=772

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, that's a good shout!


about:
homepage: https://rapids.ai
license: LicenseRef-Custom
license_file: LICENSE
summary: RAPIDS Suite - Open GPU Data Science
72 changes: 0 additions & 72 deletions conda/recipes/rapids/meta.yaml

This file was deleted.

63 changes: 63 additions & 0 deletions conda/recipes/rapids/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright (c) 2025, NVIDIA CORPORATION.
schema_version: 1

context:
version: ${{ env.get("GIT_DESCRIBE_TAG", default="0.0.0.dev") | replace("v", "")}}
minor_version: ${{ (version | split("."))[:2] | join(".") }}
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}
linux64: ${{ linux and x86_64 }}

package:
name: rapids
version: ${{ version }}

source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}

requirements:
host:
- cuda-version =${{ cuda_version }}
- pip
- python =${{ py_version }}
run:
- ${{ pin_compatible("cuda-version", upper_bound="x", lower_bound="x") }}
- cupy ${{ cupy_version }}
- nccl ${{ nccl_version }}
- numpy ${{ numpy_version }}
- nvtx ${{ nvtx_version }}
- python
- cudf ${{ minor_version }}.*
- cudf-polars ${{ minor_version }}.*
- cuvs ${{ minor_version }}.*
- cugraph ${{ minor_version }}.*
- nx-cugraph ${{ minor_version }}.*
- cuml ${{ minor_version }}.*
- cucim ${{ minor_version }}.*
- cuspatial ${{ minor_version }}.*
- cuproj ${{ minor_version }}.*
- custreamz ${{ minor_version }}.*
- cuxfilter ${{ minor_version }}.*
- dask-cuda ${{ minor_version }}.*
- rapids-xgboost ${{ minor_version }}.*
- rmm ${{ minor_version }}.*
- pylibcugraph ${{ minor_version }}.*
- libcugraph_etl ${{ minor_version }}.*
- if: cuda_major == "11"
then: ptx-compiler
- conda-forge::ucx ${{ ucx_version }}
ignore_run_exports:
by_name:
- python_abi

about:
homepage: https://rapids.ai
license: Apache-2.0
summary: RAPIDS Suite - Open GPU Data Science