Skip to main content

Python wrapper for OpenCL

Project description

Gitlab Build Status Github Build Status Python Package Index Release Page

(Also: Travis CI to build binary wheels for releases, see #264)

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

Uploaded Source

Built Distributions

pyopencl-2021.1-cp39-cp39-manylinux2014_x86_64.whl (761.1 kB view details)

Uploaded CPython 3.9

pyopencl-2021.1-cp38-cp38-manylinux2014_x86_64.whl (760.9 kB view details)

Uploaded CPython 3.8

pyopencl-2021.1-cp38-cp38-manylinux1_x86_64.whl (747.2 kB view details)

Uploaded CPython 3.8

pyopencl-2021.1-cp37-cp37m-manylinux2014_x86_64.whl (777.7 kB view details)

Uploaded CPython 3.7m

pyopencl-2021.1-cp37-cp37m-manylinux1_x86_64.whl (749.6 kB view details)

Uploaded CPython 3.7m

pyopencl-2021.1-cp36-cp36m-manylinux2014_x86_64.whl (777.9 kB view details)

Uploaded CPython 3.6m

pyopencl-2021.1-cp36-cp36m-manylinux1_x86_64.whl (749.5 kB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pyopencl-2021.1.tar.gz
  • Upload date:
  • Size: 357.9 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.0 CPython/3.9.1+

File hashes

Hashes for pyopencl-2021.1.tar.gz
Algorithm Hash digest
SHA256 262a29708a5465bd12b75d838f8d1107cd9321f54cb1c553c0064db10f3d5041
MD5 f6cd903e8f97f6af361ca6d522490f12
BLAKE2b-256 52a9a56caf7a9fd4e98547d0b9354f06e05b3f1d1b94b2ae4038cccdcbfd3eca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 761.1 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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2021.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37c1ff55430763a1f5045d86152e5b4b7c6e99ba76fe25b970ac84b290e08604
MD5 62169f649e6f6ca783060c7553154232
BLAKE2b-256 29893f24297a3b8d1db48e79cd147eb39bd17a97a8f4ce0dc01217d4ae4c9cad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 760.9 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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2021.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4b6220037d378256100910011feb4534fedfd49d52799d5f49021b5a727d285
MD5 60dc5d3258c3fc9effb26397dfdd4fa3
BLAKE2b-256 0c36ec279a26c026438619542c084cdea5eac572f11dd6ca03387e72e9148a5c

See more details on using hashes here.

File details

Details for the file pyopencl-2021.1-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2021.1-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 747.2 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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2021.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8ccea00464d2d14b210b8119ac86ac8d067758ceacaab389de580d85f9eebf89
MD5 7468e27923400d03b5857377a27e3e96
BLAKE2b-256 757c88148c6526e5b4cc3072bc59786dc437dd34bce9819c9682337519a69564

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 777.7 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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2021.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f4b07aa55e914e44761a8801cb52de02aadf013ef5f8dc5112a294c5224db532
MD5 6c948d4694b2e9a65cec9ae1ef65963c
BLAKE2b-256 c7c3da770cb22eb974a40651d01640262953a137865cbb2097debf7fd5c4f9e0

See more details on using hashes here.

File details

Details for the file pyopencl-2021.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2021.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 749.6 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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2021.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c212f64747afb53af598fe8ef0f9c40a23bd5cad81674e3db58d11859580d8e7
MD5 bdba7aff68a9e4e1672409029270ab94
BLAKE2b-256 791fdf5810f62028d5fa889620ea2c040b0812110d9e24d14b608d112a828206

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 777.9 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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2021.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96520c90429da4b262ab2be257f2259f396a770bf7e8f42e6e8a4516288c9902
MD5 a80f7bce1edcdfb5e2bd5f7f6b75e461
BLAKE2b-256 9a73e6f9fa1c43e8679f8425e4b10981e3873dfb8e02032f5bdcd9a5f7222f58

See more details on using hashes here.

File details

Details for the file pyopencl-2021.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2021.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 749.5 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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for pyopencl-2021.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 eeca93f89e3f26d77d66e4ad2d99f5f0b4c5b74b3a58addfeadc680ff8eb6480
MD5 16cec3110e73a95ecefb464df38b1f2c
BLAKE2b-256 aab4de5dad8d80f03e62b4e02552e54401208579fcd14868098cc4d13870a279

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