Chapter 6. GPU Programming with Python

In this chapter, we will cover the following recipes:

  • Using the PyCUDA module
  • How to build a PyCUDA application
  • Understanding the PyCUDA Memory Model with matrix manipulation
  • Kernel invocations with GPUArray
  • Evaluating element-wise expressions with PyCUDA
  • The MapReduce operation with PyCUDA
  • GPU programming with NumbaPro
  • Using GPU-accelerated libraries with NumbaPro
  • Using the PyOpenCL module
  • How to build a PyOpenCL application
  • Evaluating element-wise expressions with PyOpenCL
  • Testing your GPU application with PyOpenCL

Introduction

The graphics processing unit (GPU) is an electronic circuit that specializes in processing data to render images from polygonal primitives. Although they were designed to carry out rendering images, ...

Get Python Parallel Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.