Installation
Install with pip
Section titled “Install with pip”cuNIBS needs CuPy and the CUDA libraries for one CUDA major version. Choose the extra that matches your system:
| Extra | CUDA libraries |
|---|---|
cu13 |
Installed from pip, for a driver that supports CUDA 13 |
cu12 |
Installed from pip, for a driver that supports CUDA 12 |
cu13-local |
Taken from a CUDA 13 toolkit already on the machine |
cu12-local |
Taken from a CUDA 12 toolkit already on the machine |
python -m pip install "cunibs[cu13]"Install exactly one extra. pip install cunibs without an extra installs no CuPy, and import cunibs then fails with a message that names the extras. With a -local extra, CuPy loads the toolkit’s libraries itself. If it cannot find them, see the CuPy installation guide.
System requirements
Section titled “System requirements”- Linux or Windows on x86-64.
- CPython 3.12, 3.13, or 3.14, including free-threaded 3.14.
- An NVIDIA GPU with compute capability 7.0 (Volta) or newer. CUDA 13 does not support GPUs older than 7.5 (Turing), so Volta GPUs need
cu12orcu12-local. - An NVIDIA driver that supports the chosen CUDA version: R580 or newer for CUDA 13, R525 or newer for CUDA 12. Run
nvidia-smito check the GPU and driver.
The same wheel serves both CUDA versions. PyPI release files · NVIDIA driver compatibility
Verify the installation
Section titled “Verify the installation”python -c "import cunibs; print(cunibs.__version__)"To verify that a simulation can run on your GPU, follow First simulation. For source builds, see Developing cuNIBS.