Skip to main content

Python wrapper for OpenCL

Project description

Gitlab Build Status Github Build Status Python Package Index Release Page

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-2021.1.5.tar.gz (447.8 kB view details)

Uploaded Source

Built Distributions

pyopencl-2021.1.5-cp39-cp39-manylinux2014_x86_64.whl (860.8 kB view details)

Uploaded CPython 3.9

pyopencl-2021.1.5-cp38-cp38-manylinux2014_x86_64.whl (859.0 kB view details)

Uploaded CPython 3.8

pyopencl-2021.1.5-cp37-cp37m-manylinux2014_x86_64.whl (878.4 kB view details)

Uploaded CPython 3.7m

pyopencl-2021.1.5-cp36-cp36m-manylinux2014_x86_64.whl (877.6 kB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pyopencl-2021.1.5.tar.gz
  • Upload date:
  • Size: 447.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.5.tar.gz
Algorithm Hash digest
SHA256 aaa438b87fbb6d5a185b22666ad0ada5f396a0ac259db95a59620e7900d3b837
MD5 a63aea48e78a6b6b11d9481bd77adfd2
BLAKE2b-256 fe431ae158c886523f99bb27e6b14783156b246df2d5c8b1da8cf8c364f43819

See more details on using hashes here.

File details

Details for the file pyopencl-2021.1.5-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyopencl-2021.1.5-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 860.8 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.5-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 864b96f365bcf7737cff02881fa956d402a356a2ad13def865712a1ad1f7c883
MD5 292c704abdb3b27a27eb41e6f9036423
BLAKE2b-256 ba1355148335a106633b33521f60d3ce072aa27fbed303290b0354ef4b75bba5

See more details on using hashes here.

File details

Details for the file pyopencl-2021.1.5-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyopencl-2021.1.5-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 859.0 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.5-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb486ffb8b804114eb767b38546d5c79b27e91cf00ddb7eaf11ab569652630eb
MD5 87caeb4a5007dc013073d964ff2ff499
BLAKE2b-256 661058f8c8df163552086f531adc134bb27bbd11ef90b12dafd0278a4a3df0c0

See more details on using hashes here.

File details

Details for the file pyopencl-2021.1.5-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyopencl-2021.1.5-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 878.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.5-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 409dac1c37d112184cf8be4cff185b86e6b6931f89aa59e850b1d854f79f07e5
MD5 f5962278aad0b2bff4d0b50d95b79f3a
BLAKE2b-256 7ac5201b7165e1b4f290473d449e6b0dd28f307e5d415584fdbf713ed2215bd9

See more details on using hashes here.

File details

Details for the file pyopencl-2021.1.5-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyopencl-2021.1.5-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 877.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.5-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a9bbd544ab65b86f8bb099e8ffbbc4bd80fb3a8dc88878c23e5ff94c10383875
MD5 0f8a1617f69eb936bc022c686578b422
BLAKE2b-256 9c1869d872bc89427ada1bb36c4569fa1372a9d4999f2595237bc9eca5d2e264

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