cupy/cupy

NumPy & SciPy for GPU

What it solves

CuPy solves the performance bottleneck of running large-scale numerical computations on a CPU by allowing Python users to execute NumPy and SciPy code on GPUs. It eliminates the need to rewrite existing CPU-based array code from scratch to achieve GPU acceleration.

How it works

CuPy acts as a drop-in replacement for NumPy and SciPy. It implements a compatible array library that targets NVIDIA CUDA or AMD ROCm platforms, enabling the same API calls to be executed on GPU hardware. For advanced users, it also provides low-level access to CUDA features, including RawKernels for C/C++ integration, Streams for performance optimization, and direct access to CUDA Runtime APIs.

Who it’s for

It is designed for Python developers and data scientists who use NumPy and SciPy for numerical computing and want to accelerate their workflows using NVIDIA or AMD GPUs.

Highlights

  • Drop-in compatibility with NumPy and SciPy APIs.
  • Supports both NVIDIA CUDA and AMD ROCm platforms.
  • Provides low-level CUDA C/C++ integration via RawKernels.
  • Includes integrated support for signal processing workflows (via cuSignal).

Related

  • Project
  • Project
  • Project
  • Project
  • Project