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

Uploaded Source

Built Distributions

pyopencl-2021.2.9-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (827.9 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (861.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (861.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyopencl-2021.2.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (879.5 kB view details)

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

pyopencl-2021.2.9-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (879.0 kB view details)

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

File details

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

File metadata

  • Download URL: pyopencl-2021.2.9.tar.gz
  • Upload date:
  • Size: 451.1 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.7

File hashes

Hashes for pyopencl-2021.2.9.tar.gz
Algorithm Hash digest
SHA256 51425e65ec49c738eefe21b1eeb1f39245b01cc0ddfd495fbe1f8df33dbc6c9e
MD5 bd4c9473a86f41b04cfefa81c8c68eb7
BLAKE2b-256 9cadb5c56c3ee2d37c08ad37aae0dbb554f47d48704fcd8ef4ab2b3c24028942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.9-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99e26fde9e5c418878a5a4a685b8ebca118f423bb09f33e7e24cfd8ef94aee30
MD5 3886d9c7cf32ae4034b87de0c4e59f85
BLAKE2b-256 1cd2f994de73973b9802d9a0f4e4941fe6124b8b1a7d315a43d863dbb894ee74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e705b47733d1055c4d8f7478907222e5881519a0dbadd1bf288baebfc024999
MD5 2bb80df526c3e327e799621b89b0b66f
BLAKE2b-256 c99fe226f17dc4c033c2750d65dcf21eae5d0a84c3d09e8a4ab9cb247f7d14bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 662899ca2fb74f2d14c2d7ac0560d3cac07e6b0847a245694bb86a27a4d350ca
MD5 00c8c2aa1e505e4737bc15f901a08161
BLAKE2b-256 b7b45cd90ff2c4fed1f7fe48b41fc6f77646db4e35026a8dad0561359ea21b3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59f9824426d823b544717cc25dee221e1a5c5143143efb8d94034cf4ef562913
MD5 10c2023cce19983f767d09fb11659dbe
BLAKE2b-256 21446a3de27a1f90518dc5a0e6564413fa11f4d297a8e1df9967bd7799315f68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.9-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 05ccbdc341f64f448bfdff173d1b1e79887129cb6c147605628bbd2e56bc3929
MD5 a7404b108cc2851b1da17dde5cfccc5a
BLAKE2b-256 2f86a7066cc6d020a964ea2345dbf3193f5857bb77232cf4722697ffdce66da1

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