Skip to content

Commit

Permalink
Use cuda-version to constrain cudatoolkit. (#13615)
Browse files Browse the repository at this point in the history
This PR changes CUDA 11 packaging to rely on `cuda-version` pinnings to constrain the installed version of `cudatoolkit`.

Resolves #13613. Resolves #13607.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - Ray Douglass (https://github.com/raydouglass)
  - https://github.com/jakirkham

URL: #13615
  • Loading branch information
bdice authored Jun 26, 2023
1 parent 6931dd1 commit cdb08fc
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 27 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ Please see the [Demo Docker Repository](https://hub.docker.com/r/rapidsai/rapids

### Conda

cuDF can be installed with conda ([miniconda](https://conda.io/miniconda.html), or the full [Anaconda distribution](https://www.anaconda.com/download)) from the `rapidsai` channel:
cuDF can be installed with conda (via [miniconda](https://conda.io/miniconda.html) or the full [Anaconda distribution](https://www.anaconda.com/download)) from the `rapidsai` channel:

```bash
conda install -c rapidsai -c conda-forge -c nvidia \
cudf=23.08 python=3.10 cudatoolkit=11.8
cudf=23.08 python=3.10 cuda-version=11.8
```

We also provide [nightly Conda packages](https://anaconda.org/rapidsai-nightly) built from the HEAD
Expand Down
3 changes: 2 additions & 1 deletion conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ dependencies:
- cubinlinker
- cuda-python>=11.7.1,<12.0a0
- cuda-sanitizer-api=11.8.86
- cudatoolkit=11.8
- cuda-version=11.8
- cudatoolkit
- cupy>=12.0.0
- cxx-compiler
- cython>=0.29,<0.30
Expand Down
6 changes: 3 additions & 3 deletions conda/recipes/cudf/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ requirements:
- libcudf ={{ version }}
- rmm ={{ minor_version }}
{% if cuda_major == "11" %}
- cudatoolkit ={{ cuda_version }}
- cudatoolkit
{% else %}
- cuda-cudart-dev
- cuda-nvrtc
Expand All @@ -85,7 +85,7 @@ requirements:
- {{ pin_compatible('rmm', max_pin='x.x') }}
- fsspec >=0.6.0
{% if cuda_major == "11" %}
- {{ pin_compatible('cudatoolkit', max_pin='x', min_pin='x') }}
- cudatoolkit
- ptxcompiler >=0.7.0
- cubinlinker # CUDA enhanced compatibility.
- cuda-python >=11.7.1,<12.0a0
Expand All @@ -102,7 +102,7 @@ requirements:

test:
requires:
- cudatoolkit ={{ cuda_version }}
- cuda-version ={{ cuda_version }}
imports:
- cudf

Expand Down
3 changes: 0 additions & 3 deletions conda/recipes/cudf_kafka/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ requirements:

test:
requires:
{% if cuda_major == "11" %}
- cudatoolkit ={{ cuda_version }}
{% endif %}
- cuda-version ={{ cuda_version }}
imports:
- cudf_kafka
Expand Down
3 changes: 0 additions & 3 deletions conda/recipes/custreamz/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ requirements:

test:
requires:
{% if cuda_major == "11" %}
- cudatoolkit ={{ cuda_version }}
{% endif %}
- cuda-version ={{ cuda_version }}
imports:
- custreamz
Expand Down
9 changes: 0 additions & 9 deletions conda/recipes/dask-cudf/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,17 @@ requirements:
- dask >=2023.5.1
- dask-core >=2023.5.1
- distributed >=2023.5.1
{% if cuda_major == "11" %}
- cudatoolkit ={{ cuda_version }}
{% endif %}
- cuda-version ={{ cuda_version }}
run:
- python
- cudf ={{ version }}
- dask >=2023.5.1
- dask-core >=2023.5.1
- distributed >=2023.5.1
{% if cuda_major == "11" %}
- {{ pin_compatible('cudatoolkit', max_pin='x', min_pin='x') }}
{% endif %}
- {{ pin_compatible('cuda-version', max_pin='x', min_pin='x') }}

test:
requires:
{% if cuda_major == "11" %}
- cudatoolkit ={{ cuda_version }}
{% endif %}
- cuda-version ={{ cuda_version }}
imports:
- dask_cudf
Expand Down
4 changes: 2 additions & 2 deletions conda/recipes/libcudf/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ requirements:
- librmm ={{ minor_version }}
- libkvikio ={{ minor_version }}
{% if cuda_major == "11" %}
- cudatoolkit ={{ cuda_version }}
- cudatoolkit
- libcufile {{ cuda11_libcufile_host_version }} # [linux64]
- libcufile-dev {{ cuda11_libcufile_host_version }} # [linux64]
- libcurand {{ cuda11_libcurand_host_version }}
Expand Down Expand Up @@ -91,7 +91,7 @@ outputs:
- cmake {{ cmake_version }}
run:
{% if cuda_major == "11" %}
- cudatoolkit {{ cuda_spec }}
- cudatoolkit
- libcufile {{ cuda11_libcufile_run_version }} # [linux64]
{% else %}
- cuda-nvrtc
Expand Down
12 changes: 8 additions & 4 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,27 +279,31 @@ dependencies:
- matrix:
cuda: "11.8"
packages:
- cudatoolkit=11.8
- cuda-version=11.8
- cudatoolkit
- libcurand-dev=10.3.0.86
- libcurand=10.3.0.86
- matrix:
cuda: "11.5"
packages:
- cudatoolkit=11.5
- cuda-version=11.5
- cudatoolkit
# Can't hard pin the version since 11.x is missing many
# packages for specific versions
- libcurand-dev>=10.2.6.48,<=10.2.7.107
- libcurand>=10.2.6.48,<=10.2.7.107
- matrix:
cuda: "11.4"
packages:
- cudatoolkit=11.4
- cuda-version=11.4
- cudatoolkit
- &libcurand_dev114 libcurand-dev>=10.2.5.43,<=10.2.5.120
- &libcurand114 libcurand>=10.2.5.43,<=10.2.5.120
- matrix:
cuda: "11.2"
packages:
- cudatoolkit=11.2
- cuda-version=11.2
- cudatoolkit
# The NVIDIA channel doesn't publish pkgs older than 11.4 for
# these libs, so 11.2 uses 11.4 packages (the oldest
# available).
Expand Down

0 comments on commit cdb08fc

Please sign in to comment.