Skip to content
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

Latest cupy cannot be installed with `cuda-version<12.4" #268

Closed
1 task done
leofang opened this issue Apr 27, 2024 · 2 comments · Fixed by #269
Closed
1 task done

Latest cupy cannot be installed with `cuda-version<12.4" #268

leofang opened this issue Apr 27, 2024 · 2 comments · Fixed by #269
Assignees
Labels
bug Something isn't working

Comments

@leofang
Copy link
Member

leofang commented Apr 27, 2024

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

I expect after #267 I can use the latest cupy (built with CUDA 12.4) + any CUDA 12.x, but the env is not solvable:

$ conda create -n bbnn python=3.11 "cupy=13.1.*=*_3" cuda-version=12.3
Channels:
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package cupy-13.1.0-py39h051b840_3 requires libcusparse, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ cuda-version 12.3**  is requested and can be installed;
└─ cupy 13.1* *_3 is not installable because there are no viable options
   ├─ cupy 13.1.0 would require
   │  ├─ cupy-core [13.1.0 py310h7958d60_3|13.1.0 py311he1e6e68_3|13.1.0 py312hffdfcc6_3|13.1.0 py39hc25c46e_3], which requires
   │  │  └─ libcusparse >=12.3.1.170,<13.0a0 , which can be installed;
   │  └─ libcusparse but there are no viable options
   │     ├─ libcusparse 12.0.0.76 would require
   │     │  └─ cuda-version [>=12.0,<12.1.0a0 |>=12.0.0,<12.1.0a0 ], which conflicts with any installable versions previously reported;
   │     ├─ libcusparse 12.1.0.106 would require
   │     │  └─ cuda-version >=12.1,<12.2.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ libcusparse 12.1.2.141 would require
   │     │  └─ cuda-version >=12.2,<12.3.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ libcusparse 12.2.0.103 conflicts with any installable versions previously reported;
   │     └─ libcusparse [12.3.0.142|12.3.1.170] would require
   │        └─ cuda-version >=12.4,<12.5.0a0 , which conflicts with any installable versions previously reported;
   └─ cupy 13.1.0 would require
      └─ cuda-version >=11.0,<12.0a0 , which conflicts with any installable versions previously reported.

The problem is we pinned the optional dependencies too tight:

- {{ pin_compatible('cuda-nvrtc', max_pin='x') }} # [(cuda_compiler_version or "").startswith("12")]
- {{ pin_compatible('libcublas', max_pin='x') }} # [(cuda_compiler_version or "").startswith("12")]
- {{ pin_compatible('libcufft', max_pin='x') }} # [(cuda_compiler_version or "").startswith("12")]
- {{ pin_compatible('libcurand', max_pin='x') }} # [(cuda_compiler_version or "").startswith("12")]
- {{ pin_compatible('libcusolver', max_pin='x') }} # [(cuda_compiler_version or "").startswith("12")]
- {{ pin_compatible('libcusparse', max_pin='x') }} # [(cuda_compiler_version or "").startswith("12")]

We should either

  1. relax the min_pin, or
  2. just don't pin, let the version float, and rely on cuda-version to get a consistent env

Installed packages

n/a

Environment info

n/a
@leofang leofang added the bug Something isn't working label Apr 27, 2024
@leofang leofang self-assigned this Apr 27, 2024
@leofang
Copy link
Member Author

leofang commented Apr 27, 2024

@conda-forge-admin, please rerender

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-webservice.

I just wanted to let you know that I started rerendering the recipe in #269.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant