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

Uploaded Source

Built Distributions

pyopencl-2021.1.2-cp39-cp39-manylinux2014_x86_64.whl (771.2 kB view details)

Uploaded CPython 3.9

pyopencl-2021.1.2-cp38-cp38-manylinux2014_x86_64.whl (769.4 kB view details)

Uploaded CPython 3.8

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

Uploaded CPython 3.7m

pyopencl-2021.1.2-cp36-cp36m-manylinux2014_x86_64.whl (787.8 kB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pyopencl-2021.1.2.tar.gz
  • Upload date:
  • Size: 358.2 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.1 CPython/3.9.1+

File hashes

Hashes for pyopencl-2021.1.2.tar.gz
Algorithm Hash digest
SHA256 18871bc80c5a94869521189cf2c04d72c88367a441a9a033f72f66792ac33d29
MD5 1a79e8f4a4647ae650a79d246b513df4
BLAKE2b-256 712fe5c0860f86f8ea8d8044db7b661fccb954c200308d94d982352592eb88ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.2-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 771.2 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/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.2-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b0bec8d3c58804e72f469a67dce3f9da6cd063b95dfc7e9b52cb2c8cd475c37
MD5 3be418825c5f16325d0988b1361877dd
BLAKE2b-256 c84124b815203134134586c51fb1544935b2570cffdabc036bc79f862c231dd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.2-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 769.4 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/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6519845e5acdfcd3dae022ccf03d79546cb0d4fb171b178df2f1a3345c3335d
MD5 eb1566e74efdd0ffc7a89e5a5d0d9202
BLAKE2b-256 dcbdf83dbffc84647f15a4e40e6c7f22d61a1fffb6ee864f91f1877494876462

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.2-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/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6315424aedcc79bcdffe671ea6e6b90311812f1b11b84ade8a00ca84ece59cbc
MD5 d22e6ce2deec852812fd89772751e468
BLAKE2b-256 a237b12bd4d12ab8cc198f6fb3630e01064b65d9282fdf69bb59d94df202e29b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.2-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 787.8 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/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for pyopencl-2021.1.2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a5174c9c441e292456a98f92bca1815a47d4c17f27076a9766cec4f0729f642
MD5 2ec2698c77253d07c8a71668030cc706
BLAKE2b-256 1571a1520edd4dbbe1e6b9dbf45d907d34e5b37b8435e5a8fbb2abe9805e9b55

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