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

Uploaded Source

Built Distributions

pyopencl-2021.2.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (827.8 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (861.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (861.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (879.4 kB view details)

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

pyopencl-2021.2.8-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (878.9 kB view details)

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

File details

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

File metadata

  • Download URL: pyopencl-2021.2.8.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.7

File hashes

Hashes for pyopencl-2021.2.8.tar.gz
Algorithm Hash digest
SHA256 15809b5d2b9a86ad01e31d176c00415436805ac884c4d197d9263bfe98280d76
MD5 e0e5a912f62873808a27bcc57ae2e7f6
BLAKE2b-256 2a4eabf9b9abac1d41be6c4224fe1e280bf7e2754f423c70d1a62f919eac9f4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60ba11574d7a6fffd0f1981ec829bb5ce5cd4d1ffe0d6f9ff1723d41cb9d1d80
MD5 3f324557dd8586e26260477abf92e61c
BLAKE2b-256 60f742fb90a758b638c4c9534b6bfa862c8655368919da3e2682d37dffd42be5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6ddfac4186c3e001d5d842339d7d6907ab18fb80a50847528f7e883a8ae08a75
MD5 51dd82e813755d18e665d1097c78e074
BLAKE2b-256 e4d28468792d234ffef8a728042e2a6725b2757d6b047ee310e87d18a1112ea5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51082c53b7b93232cf32fe2d0e3bd708bff89c80b861cc02dd4e103c31cb1aaa
MD5 9894875cb0abc7d2001d3b58312389e5
BLAKE2b-256 fa00dda013df03853b7b5f378a833437e906570c909050b8ed4a5c86fbb586bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 68effbb9172db7b16a98d43ff6d29b8259905ba5eb8a7f17afc09f06fab8f147
MD5 45ff068a67f54585a893993d0a48cdcf
BLAKE2b-256 0e5ad87713db2e5ea23422651cc74ed28013a17fbf7584c87e594b6bd4628fda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.8-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0722199b1e6bcd540dfefe1af3e332621b3ab2654637eeabb2ffe84213008825
MD5 bb4fdfafa1c14bfe606afcd55789fcf8
BLAKE2b-256 b0491312fe404067b71f567bf797271d2cd37d68bd83aa56ba91c86429bf25a0

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