Skip to main content

Python wrapper for OpenCL

Reason this release was yanked:

https://github.com/inducer/pyopencl/pull/474

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

Uploaded Source

Built Distributions

pyopencl-2021.2-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-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (860.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (878.8 kB view details)

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

pyopencl-2021.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (878.1 kB view details)

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

File details

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

File metadata

  • Download URL: pyopencl-2021.2.tar.gz
  • Upload date:
  • Size: 449.7 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.tar.gz
Algorithm Hash digest
SHA256 cf8703a6ffd6b8f2c07b5e61a84101bda38c1782e4c037da793bf902f07bf023
MD5 433567a57ceba017eff8584a6630159a
BLAKE2b-256 f099636bafc350f4d7c45fc5f88444367cd2b53d5e7f5fd3e9f11d45494ae871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 451bc7db1ede74f1b6bf31b21f46a310dae9a74ce28136d0c06203bc81e3d463
MD5 7f57ddcbcec2d08228010e15d6125225
BLAKE2b-256 d92aee23fc08ad329e29c94e6e5e3065b252904756e40a3b5035cfccda2e99f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37119c262e48421ec59d6450a030d8f5d5e5f926ccae4e683eb9ec49276e4233
MD5 77f02e498bdc95f520307b4b30d0323e
BLAKE2b-256 71c8794b80377b560975ba32842488e310c742af5a31aac040b5f28b9478bf24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d733608bad7b26568148b3bad4e58f1397e40851db9d721276488a7910aa78ad
MD5 2452901c979788726a41e969d05ca23f
BLAKE2b-256 1fd1fa86e2d9cf5d435e6c932670036c4cad7b5b214a07d8f982be4608edce8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d993c664a0ed95dc9fb3fdbc7f00b3da134c39b03a0ec33e7b2a9d47f0497ae
MD5 ff570f0e99683d39d324f09c91eb98d1
BLAKE2b-256 57f0a5fcc12d940296c5a509814f99fbc98935332bf90e14f08a326930729141

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