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.)

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

Uploaded Source

Built Distributions

pyopencl-2021.2.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (837.8 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (861.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (859.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (878.5 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (877.7 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: pyopencl-2021.2.3.tar.gz
  • Upload date:
  • Size: 450.9 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.2.3.tar.gz
Algorithm Hash digest
SHA256 be8dbf48ee40997721e3bb3990a67c3fc95982c1265595b2f793f89e8dc38a33
MD5 b428c57a306fcff24792221aa6cc74fa
BLAKE2b-256 e38dc6f856ad549359cfea2e2636577b4545db2b6db8af0f56dd1562ab95c81f

See more details on using hashes here.

File details

Details for the file pyopencl-2021.2.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2021.2.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2cc673b21fc8c9f75d1a8b53e2b7031f2c27e08488ba52a49ece0162c34e4843
MD5 4bef4cb582651b2234f08558fc8b3a91
BLAKE2b-256 106de34046d7f96970f214c7385749e4455453bd109a9e97d5314d76e06164f3

See more details on using hashes here.

File details

Details for the file pyopencl-2021.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2021.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2fa46a1cdea3fafffc45f9f689ea35d617df78ac7172a84c977b47060134055
MD5 fc482330850a0ee11f93ecd9de515edd
BLAKE2b-256 8c5af46a96542d1ecb82b31c0ed9ab65ae4f0cd8a08480d5dbc24cc4a5d2e3a9

See more details on using hashes here.

File details

Details for the file pyopencl-2021.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2021.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 08c3120e717fbdcb2f27f0389a4d45f976ff12a89486cc7965035207bcc21d20
MD5 62b30056afa9d6ae6ec54bc107b0269b
BLAKE2b-256 6852f73a84ce87c27180acea9a2a9270cde33aaba2a4f2ff70ba48c48b7d450b

See more details on using hashes here.

File details

Details for the file pyopencl-2021.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2021.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a0e3937d8da878dfd2dd6480f4a1b71034ab4c4f5810527ae6e0328c5edf72fe
MD5 7db9e5d08ad44b875596b6eb1a1f0fd2
BLAKE2b-256 cbe2843f00bd87408e576eb3783fa281836be50e2301a3cb9f86fca347ef3228

See more details on using hashes here.

File details

Details for the file pyopencl-2021.2.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2021.2.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3da19039e1d74ee5dd6036b7878729d8c775fd209d34ab93627d126037e47a7c
MD5 4f9949ef0a4b1594c492f26f962bd80e
BLAKE2b-256 bc934d54e3f6a0a0aa1c63d6c721a3a2ab9ab2c7fd197063589d0aea7dfdd6b7

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