question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not bundle cuDNN / NCCL for all wheel packages starting in CuPy v9

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
pentschevcommented, Mar 9, 2021

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?

2reactions
kmaehashicommented, Aug 6, 2022

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.

echo "#error dummy" > cudnn.h
CFLAGS="-I${PWD}" pip install -v .
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found