cupy-cuda12x
CuPy: NumPy & SciPy for GPU
What it is and what it does
CuPy is a GPU-accelerated array library that mirrors NumPy and SciPy's API, allowing you to write numerical code that runs on NVIDIA GPUs instead of CPUs. It's built on CUDA 12.x and lets you leverage GPU parallelism for matrix operations, linear algebra, Fourier transforms, and other scientific computing tasks without rewriting your code from scratch. The package is actively maintained, supports modern Python versions (3.10–3.14), and is available as precompiled wheels for Linux (x86_64 and aarch64) and Windows.
You can install it standalone if you already have CUDA Toolkit 12.x on your system, or use the [ctk] extra to have pip bundle the necessary CUDA runtime components. It depends on NumPy and cuda-pathfinder for runtime operation. The library is in production-stable status and widely used in scientific and machine-learning workflows where GPU acceleration is needed.
Use it for:
- Accelerate large matrix operations and linear algebra computations by running them on GPU instead of CPU.
- Port existing NumPy code to GPU with minimal changes, using CuPy's drop-in compatible API.
- Build GPU-accelerated machine learning pipelines that need fast numerical array operations.
- Perform large-scale scientific simulations and data transformations that benefit from GPU parallelism.
- Combine CuPy with deep learning frameworks to handle numerical preprocessing on the same GPU device.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
CuPy provides a NumPy- and SciPy-compatible array library that runs computations on NVIDIA GPUs using CUDA 12.x, letting you write GPU-accelerated numerical code with a familiar NumPy-like API.
Yes, if you have CUDA 12.x hardware and want GPU-accelerated NumPy-like operations. The package is actively maintained, permissively licensed, and widely used in production. Install friction is moderate—you need CUDA Toolkit 12.x or must use the [ctk] extra—but that's a one-time setup cost. No known security vulnerabilities. Not worth installing if you don't have NVIDIA GPU hardware or are locked into a different CUDA version.
Install
cupy-cuda12x on PyPI
pip
pip install cupy-cuda12xuv
uv add cupy-cuda12xpoetry
poetry add cupy-cuda12xInstalling cupy-cuda12x
Before you install
Medium install friction: requires CUDA Toolkit 12.x to be installed locally, or you can use the [ctk] extra to bundle CUDA components from PyPI. The package is actively maintained with recent releases and supports Python 3.10–3.14 across Linux, Windows, and ARM platforms.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install cupy-cuda12x
# or with bundled CUDA:
# pip install cupy-cuda12x[ctk]
import cupy as cp
x_gpu = cp.array([1, 2, 3])
result = cp.sum(x_gpu)
CUDA Toolkit 12.x must be installed locally on your system, or you must use the [ctk] extra to install CUDA components alongside the package.
Verify before relying
- Performance gains relative to NumPy on typical workloads and hardware configurations.
- Memory overhead or compatibility gotchas when mixing CuPy and NumPy arrays in the same codebase.
- Support status for older CUDA 12.x minor versions (e.g., 12.0 vs. 12.6).
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 2 — numpy, cuda-pathfinder |
| Maintenance | actively maintained — 74 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,215,490/month — #2,698 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cupy_cuda12x-14.1.1-cp310-cp310-manylinux2014_aarch64.whl; cupy_cuda12x-14.1.1-cp310-cp310-manylinux2014_x86_64.whl; cupy_cuda12x-14.1.1-cp310-cp310-win_amd64.whl; cupy_cuda12x-14.1.1-cp311-cp311-manylinux2014_aarch64.whl; cupy_cuda12x-14.1.1-cp311-cp311-manylinux2014_x86_64.whl; cupy_cuda12x-14.1.1-cp311-cp311-win_amd64.whl; cupy_cuda12x-14.1.1-cp312-cp312-manylinux2014_aarch64.whl; cupy_cuda12x-14.1.1-cp312-cp312-manylinux2014_x86_64.whl; cupy_cuda12x-14.1.1-cp312-cp312-win_amd64.whl; cupy_cuda12x-14.1.1-cp313-cp313-manylinux2014_aarch64.whl; cupy_cuda12x-14.1.1-cp313-cp313-manylinux2014_x86_64.whl; cupy_cuda12x-14.1.1-cp313-cp313-win_amd64.whl; cupy_cuda12x-14.1.1-cp314-cp314-manylinux2014_aarch64.whl; cupy_cuda12x-14.1.1-cp314-cp314-manylinux2014_x86_64.whl; cupy_cuda12x-14.1.1-cp314-cp314t-manylinux2014_aarch64.whl; cupy_cuda12x-14.1.1-cp314-cp314t-manylinux2014_x86_64.whl; cupy_cuda12x-14.1.1-cp314-cp314-win_amd64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
cupy-cuda13xCuPy provides a NumPy and SciPy-compatible…
permissive · top 15,000 on PyPI
nvidia-cufft-cu12Provides NVIDIA CUFFT native runtime libraries…
unclear · top 1,000 on PyPI
nvidia-cuda-cccl-cu12Provides NVIDIA's CUDA C++ Core Compute…
unclear · top 15,000 on PyPI
nvidia-cuda-runtime-cu12Provides NVIDIA CUDA 12 runtime native…
unclear · top 1,000 on PyPI
array-api-compatProvides a unified wrapper around NumPy, CuPy,…
permissive · top 5,000 on PyPI
nvidia-cufft-cu11Provides NVIDIA CUFFT native runtime libraries…
unclear · top 5,000 on PyPI
coffeacoffea provides columnar data analysis tools…
permissive · top 15,000 on PyPI
nvidia-cublas-cu12Provides NVIDIA CUBLAS native runtime libraries…
unclear · top 1,000 on PyPI
nvidia-cublas-cu11Provides NVIDIA CUBLAS native runtime libraries…
unclear · top 5,000 on PyPI
nvidia-cuda-runtime-cu11Provides CUDA 11 runtime native libraries for…
unclear · top 5,000 on PyPI