cupy

cupy: Run NumPy and SciPy Workloads on GPUs

CuPy is a Python array library that brings NumPy- and SciPy-compatible computing to NVIDIA CUDA and AMD ROCm GPUs. It suits Python users who want GPU acceleration while reusing familiar APIs, or who need lower-level GPU controls.

View on GitHub Compare
Stars
12.4k
Forks
1.1k
Stars, last 30 days
+46

Our take

Health score

69/100

How it is scored
Activity
71
Community
94
Issues
63
Pull requests
46

+46 stars in the last 30 days

  • Merges more pull requests than 82% of the projects we track
  • More contributors than 78% of the projects we track
  • Slower to merge pull requests than 89% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

12,411

Forks

1,167

Change since Nov 17, 2026: +2 stars·+2 forks

Overview

CuPy provides GPU-backed arrays and operations through APIs designed to be compatible with NumPy and SciPy. It helps Python developers accelerate existing numerical workloads with fewer changes than a full rewrite, while still allowing GPU-specific programming when needed.

It is a fit for scientific computing, data processing, and other workloads that can benefit from GPU execution. CuPy targets NVIDIA CUDA and AMD ROCm platforms, so using it requires a supported GPU environment and an appropriate package.

Key Features

  • NumPy- and SciPy-compatible array computing on GPUs.
  • Supports NVIDIA CUDA and AMD ROCm platforms.
  • Provides GPU array operations, including reshaping and reductions.
  • Exposes lower-level GPU programming through RawKernels.
  • Supports GPU streams and direct CUDA Runtime API access.
  • Offers installation options through pip, Conda, and Docker.

Use Cases

  • Python data scientists can move suitable NumPy-based numerical workflows to a GPU while retaining familiar array APIs.
  • Scientific computing teams can accelerate array-heavy calculations when supported CUDA or ROCm hardware is available.
  • Developers building custom GPU operations can use RawKernels and pass CuPy arrays to CUDA C/C++ programs.
  • Users working with signal-processing workloads can use CuPy, which includes cuSignal starting with version 13.0.0.

Getting Started

For a Linux or Windows system with CUDA 12.x, install the corresponding package:

pip install cupy-cuda12x

Choose a package that matches your platform and CUDA or ROCm setup. See the installation guide and README for details.

Considerations

  • CuPy is intended for GPU computing, so a compatible GPU and runtime environment are needed to benefit from it.
  • The pip package must match the platform and GPU software stack. The README lists separate CUDA package choices and identifies ROCm 7.0 support as experimental.
  • NumPy/SciPy compatibility does not mean every workload or API will run unchanged. Check the compatibility documentation when porting code.
  • The repository is MIT-licensed and is not archived.

Found this useful?

Share it with someone who would like cupy.

Comparisons