liveBook · Manning

CuPy

CuPy is an open-source Python library providing a NumPy-compatible interface for GPU-accelerated numerical computing.

How 2 Manning books explain it

Fast Python: High performance techniques for large datasets

How it is used
Uses CuPy for GPU array processing and as a platform for profiling GPU computations.
How deep it goes
Develops array operations and two custom Mandelbrot kernels, while deferring CUDA C details and changing NumPy compatibility limitations.
Examples
Demonstrates matrix doubling and Mandelbrot generation with Numba and CUDA C kernels.
What you can do after
Apply CuPy to GPU arrays, transfer results to NumPy, and measure operations with cupyx.time.repeat.

Read how Fast Python: High performance techniques for large datasets explains CuPy →

Starting Data Analytics with Generative AI and Python

CuPy is a Python array-computing library that provides GPU-accelerated operations with an interface modeled on NumPy.

How it is used
Accelerates bootstrap confidence-interval calculations by moving compatible array operations from the CPU to a CUDA-enabled GPU.
How deep it goes
Demonstrates installation and code conversion, but defers detailed CPU–GPU architecture and compatibility mechanics.
Examples
Uses a CUDA bootstrap_CI function, pip installation, CuPy percentile operations, and execution-time comparisons against optimized CPU code.
What you can do after
Apply it via CuPy by adapting NumPy-based array code for CUDA and returning results to NumPy when needed.

Read how Starting Data Analytics with Generative AI and Python explains CuPy →

Related concepts

Questions about CuPy

What is CuPy?

CuPy is an open-source Python library providing a NumPy-compatible interface for GPU-accelerated numerical computing.

Which Manning books explain CuPy?

Fast Python: High performance techniques for large datasets and Starting Data Analytics with Generative AI and Python.

What is the difference between CuPy and NumPy?

CuPy is an open-source Python library providing a NumPy-compatible interface for GPU-accelerated numerical computing. NumPy is an open-source Python library for numerical computing, providing multidimensional arrays and operations on them.

What is CuPy a kind of?

CuPy is a kind of GPU-based library. A GPU-based library is a software library that provides computational functionality implemented for execution on graphics processing units.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.