Do not bundle cuDNN / NCCL for all wheel packages starting in CuPy v9
See original GitHub issueWe have been distributing binary packages (cupy-cudaXXX
) via PyPI. However recently the size of GPU-related packages (including CuPy) is starting to cause a problem on PyPI (see discussions on Python forum).
We take this problem seriously, and to help PyPI ecosystem healthy, we are planning to stop bundling cuDNN / NCCL shared libraries from all wheels, starting in v9 releases.
Note that cuDNN / NCCL are still supported and enabled in wheels, but users who want to use these features need to install the library via python -m cupyx.tools.install_library
command.
FYI, here are our past efforts to reduce the package size on PyPI:
- CuPy v7: Do not bundle cuDNN v8.x (#3724)
- CuPy v8: Remove outdated pre-release wheels (#4360)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Upgrade Guide — CuPy 9.2.0 documentation
Prior to CuPy v6, LD_LIBRARY_PATH environment variable can be used to override cuDNN / NCCL libraries bundled in the binary distribution (also known...
Read more >CuDNN is not available in binary-installed cupy - Stack Overflow
I installed Cupy using the binary package cupy-cuda92 , but CuDNN is not loaded. ... I tried uninstalling & reinstalling chainer and cupy...
Read more >Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >Conda install cuda - miocittadino.it
However, the installed pytorch does not detect my GPU successfully. See NVIDIA's CUDA toolkit and cuDNN conda package page for available conda packages....
Read more >SOSCIP GPU - SciNet Users Documentation
CuPy can be install into any conda environment. Python packages: numpy six and fastrlock are required. cuDNN and NCCL are optional.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As we discussed earlier today on our call, could we extend this effort to conda packages, effectively making cuDNN an optional install rather than a requirement?
Currently, there’s no way to programmatically force building without cuDNN when it is available.
You can comment out this line: https://github.com/cupy/cupy/blob/704f87e927998f31534ab76b5d831f967114a84c/install/cupy_builder/_modules.py#L381
or, you can make a faulty dummy header so that CuPy does not recognize cuDNN as available.