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

Uploaded Source

Built Distributions

pyopencl-2021.1.6-cp39-cp39-manylinux2014_x86_64.whl (861.2 kB view details)

Uploaded CPython 3.9

pyopencl-2021.1.6-cp38-cp38-manylinux2014_x86_64.whl (859.4 kB view details)

Uploaded CPython 3.8

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

Uploaded CPython 3.7m

pyopencl-2021.1.6-cp36-cp36m-manylinux2014_x86_64.whl (878.0 kB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pyopencl-2021.1.6.tar.gz
  • Upload date:
  • Size: 448.6 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.1.6.tar.gz
Algorithm Hash digest
SHA256 b618e8105cdd36df8bd2f511ca9d8e509a12c0f886e5848b12320c4a9dfefbb0
MD5 1c558a730f57fbf09dc4ecf88fb1644f
BLAKE2b-256 08ee077b79683a8cb069cba1dd227772513130e6b59f53252d8f3009c9db975c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.6-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 861.2 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4

File hashes

Hashes for pyopencl-2021.1.6-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 332718b1ae454ffdb0d36f6b9f3ba8a5a8e4830b078564605e9385f519e2266f
MD5 070fe03a0749785098300400120bfcf0
BLAKE2b-256 aa90c44fb2c336e8a72f63e99d654dd71f34ccf139ec2c08d74fc610814b62ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.6-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 859.4 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4

File hashes

Hashes for pyopencl-2021.1.6-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54ce14a30cb89169a98d17575430ef146e76322aedf2d644e029e8a56246c0ed
MD5 d9b97239b1fcd35070dc93f80b50ad06
BLAKE2b-256 38118c28846781c48295980ae44ce5285a4b278e64302ce91b9ee62f460ca7d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.6-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 878.8 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4

File hashes

Hashes for pyopencl-2021.1.6-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 693ac1302a429d0de5220ba7f7e36c0697b9e72ea6d3aac9992f6f26c095bbd8
MD5 990fb6dcb43726f2486986e83898060e
BLAKE2b-256 e8924542a44717e11018ec9399855eb45b41fdf8e2eb0c500890da6cf6eb877d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.6-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 878.0 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4

File hashes

Hashes for pyopencl-2021.1.6-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df85373d5ae8187fa0318db07eaabafabd4537cd986fa958b5151d625809663a
MD5 8ce8264a303ea690808e1537e1376b37
BLAKE2b-256 5c48f5aaddb193db2152c860a4c5bf92bb907856b2d131637381e3ed655a97ac

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