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

Uploaded Source

Built Distributions

pyopencl-2021.1.3-cp39-cp39-manylinux2014_x86_64.whl (771.2 kB view details)

Uploaded CPython 3.9

pyopencl-2021.1.3-cp38-cp38-manylinux2014_x86_64.whl (769.4 kB view details)

Uploaded CPython 3.8

pyopencl-2021.1.3-cp37-cp37m-manylinux2014_x86_64.whl (788.2 kB view details)

Uploaded CPython 3.7m

pyopencl-2021.1.3-cp36-cp36m-manylinux2014_x86_64.whl (787.8 kB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pyopencl-2021.1.3.tar.gz
  • Upload date:
  • Size: 447.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.1+

File hashes

Hashes for pyopencl-2021.1.3.tar.gz
Algorithm Hash digest
SHA256 a428683690f66383cb59c675c2991ced45f0c9b722373e53a643c1b75de89c12
MD5 33e5f40d47458ce011854541cab18f32
BLAKE2b-256 77bf8477afdf79e5513a7c2ce4e053e018508d2b1759c6e3766a4b700a914ea1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.3-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 771.2 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/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.3-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c857f389ff659deeaf1f3c26f31b5a2a5f9ca4e624f43537cbf557bed41ad010
MD5 bb75338f2d14584808dde1a04eebd25f
BLAKE2b-256 335bff1f9ae493aaa1f999d4da926632c266acde7276c0aa61c406fa3a7ec54a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.3-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 769.4 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/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a7c181f1a362b3f958895ac8e3e954b3f1e47e7c96307ea5b9ac70ee4db2d8c
MD5 79df24e2f11e17b616a8a3835ae344c4
BLAKE2b-256 db8ee748040886e7c505c0bbb0ee49eead090131490aeea8140b406986b0cfc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.3-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 788.2 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/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.3-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8895713b6b1bdc7e988af6fbaab4e9a8b15f147104857a1fd3eb81eb373eddf8
MD5 0f03b37285aa7b44bfac88c6dc4ae96e
BLAKE2b-256 fb117cf254ad51cbad62142f4b23dff3c03aa3a89ecf3f67872a0fa6b322403b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2021.1.3-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 787.8 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/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pyopencl-2021.1.3-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f3204df3851df93ae69fc064cd2ff8e6d85af14a796f13d6f500ea34e6af7f3c
MD5 0419f55fa2a17ba5a290b00e3757e954
BLAKE2b-256 ea66517a3be1b16ba242a208cb936d5d000fcdc356259868bc380ea25a94976e

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