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

Uploaded Source

Built Distributions

pyopencl-2021.1.1-cp39-cp39-manylinux2014_x86_64.whl (771.4 kB view details)

Uploaded CPython 3.9

pyopencl-2021.1.1-cp38-cp38-manylinux2014_x86_64.whl (769.1 kB view details)

Uploaded CPython 3.8

pyopencl-2021.1.1-cp37-cp37m-manylinux2014_x86_64.whl (788.2 kB view details)

Uploaded CPython 3.7m

pyopencl-2021.1.1-cp36-cp36m-manylinux2014_x86_64.whl (787.4 kB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pyopencl-2021.1.1.tar.gz
  • Upload date:
  • Size: 357.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.56.0 CPython/3.9.1+

File hashes

Hashes for pyopencl-2021.1.1.tar.gz
Algorithm Hash digest
SHA256 ee78d2696a4bb62c6def2678d662d67d27c103621b8c00e21158d16ccbf5c346
MD5 022d96b60d469ee01f19bafa976fcb39
BLAKE2b-256 2cd5393c6754e68bc4353387f0dd1e4a37909a594eb0b273d757eaf5c9ff5468

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.1-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 771.4 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99d4abb42777c55085e561e18bd9edf121eb0dac87f38cc2872cba3ed5e1f52b
MD5 c5a0b043c39f7bd59a866f7cf4f3d48b
BLAKE2b-256 519a3896fbf1b66fd85c76e997a6ad8b3289403ef5b71a565e11350d08d457dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.1-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 769.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa0b27a36d6e6748040981ed49640d057d49e3cbfa2c7ed989151a6d90746ec7
MD5 dffb24ed35dab01680cb8ed3b0c91dc8
BLAKE2b-256 6e00149a326fa934637c89549cddb87219523b0e9190d3e0f1a1d1a94f379135

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.1-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 788.2 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d9a378470cbea99d7412f5118522463b38fc4904182fc685a310cc05ca4a5913
MD5 184b48e3fa3075ac43afa237f7a00313
BLAKE2b-256 3e607010f31432620e1fffafa12196312da2bd599daae4693abd30df1e8671b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.1-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 787.4 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2286b7cad3fe89e7aa065005b867a5ab031c6934917a3b764a1c8f4af7761580
MD5 b2d660a6bf7b5fed08cebcb6d1ada8c5
BLAKE2b-256 42bd5a5ee4eca58dc073f281ca05693eca7a5cadc3b2107c68800cdab6310322

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