Skip to content

Update CuPy and NumPy dependency specs#2260

Open
bdice wants to merge 1 commit into
NVIDIA:mainfrom
bdice:cupy-pin
Open

Update CuPy and NumPy dependency specs#2260
bdice wants to merge 1 commit into
NVIDIA:mainfrom
bdice:cupy-pin

Conversation

@bdice

@bdice bdice commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Contributes to rapidsai/build-planning#279

RAPIDS is taking on requirements cupy>=14.0.1,!=14.1.0 and numpy>=2.0. Wheel dependencies on cupy-cuda12x and cupy-cuda13x now use the [ctk] extra.

See the linked issue for details.

@bdice bdice added non-breaking Introduces a non-breaking change improvement Improves an existing functionality labels Jun 24, 2026
@copy-pr-bot

copy-pr-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@bdice bdice changed the title Update CuPy lower bound to 14.0.1 Update CuPy and NumPy lower bounds Jun 24, 2026
@bdice bdice changed the title Update CuPy and NumPy lower bounds Update CuPy and NumPy dependency specs Jun 24, 2026
@bdice bdice marked this pull request as ready for review June 24, 2026 05:54
@bdice bdice requested a review from a team as a code owner June 24, 2026 05:54
@bdice bdice requested a review from msarahan June 24, 2026 05:54
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1aaeebff-605b-4e3a-b063-8c825b898f4f

📥 Commits

Reviewing files that changed from the base of the PR and between 71306ec and e1e43ee.

📒 Files selected for processing (13)
  • conda/environments/all_cuda-129_arch-aarch64.yaml
  • conda/environments/all_cuda-129_arch-x86_64.yaml
  • conda/environments/all_cuda-133_arch-aarch64.yaml
  • conda/environments/all_cuda-133_arch-x86_64.yaml
  • conda/environments/bench_ann_cuda-129_arch-aarch64.yaml
  • conda/environments/bench_ann_cuda-129_arch-x86_64.yaml
  • conda/environments/bench_ann_cuda-133_arch-aarch64.yaml
  • conda/environments/bench_ann_cuda-133_arch-x86_64.yaml
  • conda/recipes/cuvs-bench-cpu/recipe.yaml
  • conda/recipes/cuvs-bench/recipe.yaml
  • conda/recipes/cuvs/recipe.yaml
  • dependencies.yaml
  • python/cuvs/pyproject.toml

📝 Walkthrough

Summary by CodeRabbit

  • Compatibility
    • Updated supported GPU and NumPy version requirements across CUDA environments, recipes, and test settings.
    • Added support for newer CuPy releases and NumPy 2.x, with version limits kept in place where needed.
    • Aligned benchmark and package configurations so installs are more consistent across architectures and CUDA variants.

Walkthrough

Bumps the minimum CuPy version from >=13.6.0 to >=14.0.1 (removing the !=14.0.0 exclusion, retaining !=14.1.0) and raises the minimum NumPy version from >=1.23 to >=2.0,<3.0 across dependencies.yaml, python/cuvs/pyproject.toml, all conda environment YAMLs, and conda recipe files.

Changes

CuPy and NumPy version constraint updates

Layer / File(s) Summary
Canonical dependency pins
dependencies.yaml, python/cuvs/pyproject.toml
dependencies.yaml raises the conda cupy pin to >=14.0.1,!=14.1.0 and the cupy-cuda12x/cupy-cuda13x pyproject pins to >=14.0.1,!=14.1.0 with the [ctk] extra added; numpy raised to >=2.0,<3.0. pyproject.toml mirrors both changes for the main dependency and the test extra.
Propagated conda environment YAMLs
conda/environments/all_cuda-129_arch-*.yaml, conda/environments/all_cuda-133_arch-*.yaml, conda/environments/bench_ann_cuda-129_arch-*.yaml, conda/environments/bench_ann_cuda-133_arch-*.yaml
All eight environment files update cupy to >=14.0.1,!=14.1.0; the four all_cuda environments also update numpy to >=2.0,<3.0.
Conda recipes
conda/recipes/cuvs-bench/recipe.yaml, conda/recipes/cuvs-bench-cpu/recipe.yaml, conda/recipes/cuvs/recipe.yaml
cuvs-bench recipe updates cupy to >=14.0.1,!=14.1.0; cuvs-bench-cpu and cuvs recipes update numpy to >=2.0,<3.0.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • rapidsai/cuvs#2142: Prior work adding !=14.1.0 CuPy exclusions in the same set of files; this PR extends that by raising the minimum to >=14.0.1 and dropping !=14.0.0.
  • rapidsai/cuvs#2146: Directly overlaps with the cupy!=14.1.0 exclusion changes in the same conda environment YAMLs, dependencies.yaml, and pyproject.toml.

Suggested reviewers

  • gforsyth
  • jameslamb
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: updated CuPy and NumPy dependency specs.
Description check ✅ Passed The description matches the PR and mentions the CuPy, NumPy, and wheel dependency updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant