Skip to main content

Python wrapper for OpenCL

Project description

Gitlab Build Status Azure 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-2019.1.2.tar.gz (343.8 kB view details)

Uploaded Source

Built Distributions

pyopencl-2019.1.2-cp38-cp38-manylinux1_x86_64.whl (721.1 kB view details)

Uploaded CPython 3.8

pyopencl-2019.1.2-cp38-cp38-manylinux1_i686.whl (685.1 kB view details)

Uploaded CPython 3.8

pyopencl-2019.1.2-cp37-cp37m-manylinux1_x86_64.whl (726.1 kB view details)

Uploaded CPython 3.7m

pyopencl-2019.1.2-cp37-cp37m-manylinux1_i686.whl (689.8 kB view details)

Uploaded CPython 3.7m

pyopencl-2019.1.2-cp36-cp36m-manylinux1_x86_64.whl (725.7 kB view details)

Uploaded CPython 3.6m

pyopencl-2019.1.2-cp36-cp36m-manylinux1_i686.whl (689.9 kB view details)

Uploaded CPython 3.6m

pyopencl-2019.1.2-cp35-cp35m-manylinux1_x86_64.whl (725.7 kB view details)

Uploaded CPython 3.5m

pyopencl-2019.1.2-cp35-cp35m-manylinux1_i686.whl (689.9 kB view details)

Uploaded CPython 3.5m

pyopencl-2019.1.2-cp34-cp34m-manylinux1_x86_64.whl (725.8 kB view details)

Uploaded CPython 3.4m

pyopencl-2019.1.2-cp34-cp34m-manylinux1_i686.whl (690.1 kB view details)

Uploaded CPython 3.4m

pyopencl-2019.1.2-cp27-cp27mu-manylinux1_x86_64.whl (724.3 kB view details)

Uploaded CPython 2.7mu

pyopencl-2019.1.2-cp27-cp27mu-manylinux1_i686.whl (689.2 kB view details)

Uploaded CPython 2.7mu

pyopencl-2019.1.2-cp27-cp27m-manylinux1_x86_64.whl (724.3 kB view details)

Uploaded CPython 2.7m

pyopencl-2019.1.2-cp27-cp27m-manylinux1_i686.whl (689.1 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: pyopencl-2019.1.2.tar.gz
  • Upload date:
  • Size: 343.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2.tar.gz
Algorithm Hash digest
SHA256 7803f3128dbd28ae6f5b851a80ef586a35b9575406ea7bb068b8e1516f8043f0
MD5 3cefdc1566100ef60b122686e003788f
BLAKE2b-256 b84a440670555eb5c9a5dccb9869cdc0a7ec2fea2fc17668027a9d8bcef1987d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.2-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 721.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9696a2a779f1c1f2fe26a3ea83e3c83a3d122f5ac050a985de8b0e8150ecf524
MD5 597dd7f2e3811e3f94dd06fb833d6ccf
BLAKE2b-256 27ce84062c9011a6b1ed196e8f657e618f6b9a879213d3461270edffe37acd53

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp38-cp38-manylinux1_i686.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 685.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 decf13ec8d48d99d499bf9b58eba646b2d3a8deaa18386156f10503b60b65595
MD5 f7aabe6542e604b44041e0f570dc3349
BLAKE2b-256 1bc5c732c1a1ac74491d9595733088a924ec1271a0ace6cd0a68f5769660efb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.2-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 726.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 13bd38327de444228892b2d6a7a503934fff8d13b2f7c494d54ae188f122e9de
MD5 8f57ae8dde4882f47e09dc421afca490
BLAKE2b-256 4d4933c74339f08482b842d444d631e8428606000fcc733c98f980aa7cd80c46

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.8 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 670a30a5dc5314e6a2463dcb286ba09bd3d29f2b7be56ff5bc76cf6e0b538671
MD5 342441144a6072802e3a92a8a4899d2c
BLAKE2b-256 2b455ccccbcf8cd7b39a20ca527a7c26537749f7c400cc698960fb3d37a27437

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 725.7 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f804e61efdbf199326bd349a21cdb3dbbcee68cfbf07da6f6dc10e38b7e9fe8a
MD5 b2e82af8232edd7bdb112a3766d8d983
BLAKE2b-256 115e877a5f129473160217a15e8aa9dbd3195f36fd10ef06e6f5ee3631ed454e

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.9 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 0e3942b20991d6f2ff9594076ac840b5e5613a5f18ee78ea839dcef84e0d553c
MD5 05f50ab47799201f49bf87a41e14dfc4
BLAKE2b-256 d5477e82751bf64cb89b28dec5d7369c4a123c9983dab806d7abea49ff2c2166

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 725.7 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 372370ee48f5496a83d65588caeb926203db1d820f9dac4430c13a4beb431fe9
MD5 9003350ec19e04fbabe2c69d0c09bf55
BLAKE2b-256 1fb412202c8617d46086892b2aad1a967c01ca7a03232fea382c36fa804dc526

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.9 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 412da4c01b5628111168107c51bd2d574eeee04c3c17f45045cd974ea3a2fd57
MD5 32b0a212f8f603c9847ebadd46b6a63d
BLAKE2b-256 b828a723d234112e734503988b97351e56ba47e46b6d7424b8b05c9b2774eec5

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 725.8 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9b2317b52afdcc7aa4633142de27f8e2ecc860023697df1d1e30d8f6e90ad9c8
MD5 98e0f8ddac6cf05b0a5c9151c418686d
BLAKE2b-256 90ef42b6b36fbb1f97e38a355c0e2125be202d70c995d8c3c0c4b7fa633d4442

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 690.1 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 ce806897d1a822eb0420294c3781d4297e2fc5b2b39ca2c68b96f7c75096ac08
MD5 68f99e1af1b71d9e00dc877086023096
BLAKE2b-256 2f1b63594462741d6bf05e2ff2eeaeb0a77a78e94c66831171b68841879feb38

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.3 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f7a6e126266c34aac4f0635bf2ab1f4c610296efa0b49ffdbdada6f34c0bb972
MD5 6608814d8dbd20fedf9752ba0efc6aa6
BLAKE2b-256 7f92f9130d750fb7232eda3f48e5de9a59d9d39fda58019174edddcd5564dfbb

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp27-cp27mu-manylinux1_i686.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 689.2 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 55db3bc904cf7b624b154cba5e74f97d101a83a3e40c6c3256eb2b89cd77e4bf
MD5 07405463749b23c24b2038d6aff0773a
BLAKE2b-256 7ea21ebc5d73f7e2ab3e66e34a2c16b3bbf60a9af2b9fb157b5ca956f4ca57e5

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.3 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a547901c037ad9d73e5e2d685f90c2697b7a27d26adf7fafeec2ce3f8afc6564
MD5 ba68332152e8d3b467d74396cb23ba1b
BLAKE2b-256 3327643438b6ec55f72e02073880d632196bd43068993ff5a21c9bf1f156e927

See more details on using hashes here.

File details

Details for the file pyopencl-2019.1.2-cp27-cp27m-manylinux1_i686.whl.

File metadata

  • Download URL: pyopencl-2019.1.2-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.1 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for pyopencl-2019.1.2-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e9c70a2691087b8931fccf0fc7fff1f3783807596cd83f8c55dab4c929bd5e38
MD5 16a3b6781415820335ebc6c6dae91473
BLAKE2b-256 c2665c257e63b015c0f0eab6dcc5972007ea69d627e464c867bd77d91c0e2af6

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