Skip to main content

Python wrapper for OpenCL

Reason this release was yanked:

test_arithmetic_on_non_scalars fails on 3.6 (no dataclasses)

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

Uploaded Source

Built Distributions

pyopencl-2021.2.4-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.4-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.4-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.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: pyopencl-2021.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 1681e5f2de98625032599b72b8b2e1f7be21c587953ac21bba55b99589f3d3bc
MD5 d40a62ab96bc8dbfb19eec323b28a0f9
BLAKE2b-256 c3abae5a339a9be4370d11b61c078906cc71223faaf59e78a7eb711610ec03b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d734cdf17b7c2d35aa42605333956a03ae2ae1e53b7ea44fc8ba15b621c331f8
MD5 312e4aac9f000d99572fef7c171e0d12
BLAKE2b-256 cd68e78ce9195e867888c1fb4c208c9f2d371886acaa9710c0abc14f3a4dd915

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8637e508271d4641f89078c2f7e3fb10833dbb6360904348b36518059efde551
MD5 aa87696be50c8fb643c17e487b753808
BLAKE2b-256 0c6f9968fc9e698ca237a5563595068b4cae1006df791fae452225e634dd2eaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0aad3b46593ca4325f937708603677363a7ea28200591f97e469dd2a3df1981d
MD5 3ecae754a0bd47a43e1cdc81dc6a0bb5
BLAKE2b-256 d61691dae3fcb3ee6593cd7131db4f0184bd10d7bdf14ba5141512367c425d8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a1967bfa27d5eb31625bf65711a35ee8d0724be20593aded48d997e718e760f
MD5 742f9e065ba5846866566b1715b1434f
BLAKE2b-256 4498ffc4a1d61e20073e3ff4a7af315828ebffc6ad651106edbeb46448488020

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopencl-2021.2.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0201159e325ee8b27a41d83dcf2efdf5e3574b55d54f4dc06f2ead25a47cb7dd
MD5 4750d3834a10e3af80666ce9cb9a5f41
BLAKE2b-256 f8495ded9a803f8683dadafacecdae3faa6fca661806078f02a989da212d1f80

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