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

Uploaded Source

Built Distributions

pyopencl-2021.2.5-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (837.8 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (861.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (859.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (878.5 kB view details)

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

pyopencl-2021.2.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (877.7 kB view details)

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

File details

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

File metadata

  • Download URL: pyopencl-2021.2.5.tar.gz
  • Upload date:
  • Size: 449.5 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.5.tar.gz
Algorithm Hash digest
SHA256 bd88c6b45fb7f9a11c9b4dbcff888d1bb42f04c214ae77d663c96f8d6ad4679c
MD5 e478ee42e6435b2d131f0c2bc2621cb1
BLAKE2b-256 39e4b41567cebee2ec59cb09f4b7b2369e95e26a890c40ef7a4c6d30b8ac6c4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.5-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20adc35d16a2a872e6103a0280aa320d196680fa4a63e65bce25ec84ad14dfae
MD5 c339779e01db75bd653c0524f01d00f4
BLAKE2b-256 18c8271fb36cf11c1e27e3c47c826cd997994c17820336994095dc6a2e440837

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4afa5f4e79411e3e5d5b126d46cf55a2fd980f8ed3963b096c0d9616a7fe5cd
MD5 7955e0b544d7379780ffce7a2bf8071d
BLAKE2b-256 e24ab63797ee5c4c71d48c549c45d581609eb5af1a7aab772c21bc0888c26dc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 afcdd18d7a05215386a48a349180421472379ffedec55d0f1326197408b9d412
MD5 7016d4bf9c263ffa125dedb85237cc20
BLAKE2b-256 d03aae3823e0887104ad210fd54d89dd4db4e993096028cf8d504feaa5271016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14faca780ebc66177f21e66fc959865c7d4a7bc44d188b41ca9cfca54d3dacd9
MD5 0d74fff411a7ff6f21f69273a70133f4
BLAKE2b-256 76f7d0143c5fa2f6c2569ce70362fe14e8c2ff556c800b4eadec322a75a4e20f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fdc76d6fae48290142661d753627341d3c474f06e324e4944a70ebb0e9de45f1
MD5 d1c234e4eed0bee01525ce3a6c7dd304
BLAKE2b-256 bc398f5c83c234308c111a7bce5de1cf9cffaf2a27dfe91ea04e52ff42d83bd4

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