Skip to main content

Python wrapper for OpenCL

Project description

Gitlab Build Status Github Build Status Python Package Index Release Page

(Also: Travis CI to build binary wheels for releases, see #264)

PyOpenCL lets you access GPUs and other massively parallel compute devices from Python. It tries to offer computing goodness in the spirit of its sister project PyCUDA:

  • Object cleanup tied to lifetime of objects. This idiom, often called RAII in C++, makes it much easier to write correct, leak- and crash-free code.

  • Completeness. PyOpenCL puts the full power of OpenCL’s API at your disposal, if you wish. Every obscure get_info() query and all CL calls are accessible.

  • Automatic Error Checking. All CL errors are automatically translated into Python exceptions.

  • Speed. PyOpenCL’s base layer is written in C++, so all the niceties above are virtually free.

  • Helpful and complete Documentation as well as a Wiki.

  • Liberal license. PyOpenCL is open-source under the MIT license and free for commercial, academic, and private use.

  • Broad support. PyOpenCL was tested and works with Apple’s, AMD’s, and Nvidia’s CL implementations.

Simple 4-step install instructions using Conda on Linux and macOS (that also install a working OpenCL implementation!) can be found in the documentation.

What you’ll need if you do not want to use the convenient instructions above and instead build from source:

  • gcc/g++ new enough to be compatible with pybind11 (see their FAQ)

  • numpy, and

  • an OpenCL implementation. (See this howto for how to get one.)

Places on the web related to PyOpenCL:

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyopencl-2020.2.2.tar.gz (352.1 kB view details)

Uploaded Source

Built Distributions

pyopencl-2020.2.2-cp38-cp38-manylinux1_x86_64.whl (719.7 kB view details)

Uploaded CPython 3.8

pyopencl-2020.2.2-cp37-cp37m-manylinux1_x86_64.whl (724.4 kB view details)

Uploaded CPython 3.7m

pyopencl-2020.2.2-cp36-cp36m-manylinux1_x86_64.whl (724.2 kB view details)

Uploaded CPython 3.6m

File details

Details for the file pyopencl-2020.2.2.tar.gz.

File metadata

  • Download URL: pyopencl-2020.2.2.tar.gz
  • Upload date:
  • Size: 352.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyopencl-2020.2.2.tar.gz
Algorithm Hash digest
SHA256 31fcc79fb6862998e98d91a624c0bd4f0ab4c5d418d199912d4d312c64e437ec
MD5 86395a6d076aebd795f668f8293d985f
BLAKE2b-256 75eeb8c71784fe0eb6997b5daf6065136ea7a8e64118a079917b0eeb70ed0d00

See more details on using hashes here.

File details

Details for the file pyopencl-2020.2.2-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2020.2.2-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 719.7 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2020.2.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3c8b380ecfddcd9a10472d2862232280c3ac90b62175ea0c13e3ac8f7285ebf9
MD5 38b95cb4c151f9371b5b8de98fc29581
BLAKE2b-256 6c68c9c9cfd610dd12cfb78b15301c316d461ea688ab477bf1ef14881b0efc85

See more details on using hashes here.

File details

Details for the file pyopencl-2020.2.2-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2020.2.2-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2020.2.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 992c70a235bb67502e82b0dba17ed6a940516fcc43386b76270ab8f5333cbde5
MD5 f144d5d5c35656dabc4ee72f59ea39fe
BLAKE2b-256 075ead2f4e714250a07c68d0409a2b2e40285fcf896d32dbad718496e9d90ed8

See more details on using hashes here.

File details

Details for the file pyopencl-2020.2.2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2020.2.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.2 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2020.2.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c181da5fef20c6201dc2fb198b1d4e0d20d18fa25b5a5763f846c671128f3cd5
MD5 56290859c64a73c5ecc23c5bc52b58af
BLAKE2b-256 8bf8470e9eb22bad38ca75c2235382e7249e45e48468794b5dbfd8028eb06282

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page