CuPy is a NumPy/SciPy-compatible array library for GPU-accelerated computing with CUDA 11.x. This package is specifically built for CUDA 11.x environments. Current version: 13.6.0. Release cadence: regular, matching the main CuPy release cycle.
pip install cupy-cuda11xVerified import paths — ran on the pinned version, not inferred.
Basic usage of CuPy on GPU with CUDA 11.x.
Upgrade CUDA to 11.4+ or use cupy-cuda11x version 12.x for older CUDA 11.x.
Ensure that the installed CUDA toolkit version matches the package: CUDA 11.4+ for cupy-cuda11x.
Use `with cp.cuda.Device(1):` to perform operations on a different GPU.
Use `with cupy.cuda.Device(0):` syntax; it remains the same but is no longer considered experimental.
Install the correct CUDA toolkit version (11.4+) or use a cupy-cuda package matching your CUDA version (e.g., cupy-cuda12x).
Check GPU presence with `nvidia-smi`. Install appropriate NVIDIA drivers.
Install with `pip install cupy-cuda11x` and verify import with `import cupy`.