Skip to main content

Python wrapper for OpenCL

Project description

https://gitlab.tiker.net/inducer/pyopencl/badges/master/pipeline.svg https://badge.fury.io/py/pyopencl.png

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

Uploaded Source

Built Distributions

pyopencl-2019.1.1-cp37-cp37m-manylinux1_x86_64.whl (724.7 kB view details)

Uploaded CPython 3.7m

pyopencl-2019.1.1-cp37-cp37m-manylinux1_i686.whl (689.1 kB view details)

Uploaded CPython 3.7m

pyopencl-2019.1.1-cp36-cp36m-manylinux1_x86_64.whl (724.7 kB view details)

Uploaded CPython 3.6m

pyopencl-2019.1.1-cp36-cp36m-manylinux1_i686.whl (689.0 kB view details)

Uploaded CPython 3.6m

pyopencl-2019.1.1-cp35-cp35m-manylinux1_x86_64.whl (724.7 kB view details)

Uploaded CPython 3.5m

pyopencl-2019.1.1-cp35-cp35m-manylinux1_i686.whl (689.0 kB view details)

Uploaded CPython 3.5m

pyopencl-2019.1.1-cp34-cp34m-manylinux1_x86_64.whl (724.9 kB view details)

Uploaded CPython 3.4m

pyopencl-2019.1.1-cp34-cp34m-manylinux1_i686.whl (689.0 kB view details)

Uploaded CPython 3.4m

pyopencl-2019.1.1-cp27-cp27mu-manylinux1_x86_64.whl (722.3 kB view details)

Uploaded CPython 2.7mu

pyopencl-2019.1.1-cp27-cp27mu-manylinux1_i686.whl (688.0 kB view details)

Uploaded CPython 2.7mu

pyopencl-2019.1.1-cp27-cp27m-manylinux1_x86_64.whl (722.3 kB view details)

Uploaded CPython 2.7m

pyopencl-2019.1.1-cp27-cp27m-manylinux1_i686.whl (688.0 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1.tar.gz
  • Upload date:
  • Size: 343.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1.tar.gz
Algorithm Hash digest
SHA256 b324f0ea311c63a3d949a367e9d8c7d4061ca4e3fffaf6afcb0e62f7100bb63c
MD5 0ce04f993c1ae29c5163b15d562c55a7
BLAKE2b-256 573279a5037bedec24139d38242e7b5a00c3b128a637bcdd907bb0dcee62d1bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.7 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7ce57ecf51e508504e19e0bfc02c9d84e0c284dd11000ebc30f8a70834bf356e
MD5 90610188a5321508d325031a67f5a198
BLAKE2b-256 105cb3ea8cf88cb5b71ea625857a1f0315fbb8988cf3e1b43e2ca13cc7ecced6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 8a69e92f05d18942e7b8c82f178d3a958b69c6d37ecc7e94f85ea557f5d4c998
MD5 65ff9700a0234ca08ba91a9aa3f7be45
BLAKE2b-256 254b59265b623b38a6b44c198bedd3f198cd08b81cdf636f8daa7cdb49a73202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.7 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d641a9f8e9357d244850310a45951c2263c0489dce73416ec3e886a13a9990b2
MD5 cc2e5a29b9074c836c7d3b7104104185
BLAKE2b-256 c3d9def50a88750b29a56ad58fe4fb510b5df0d21f05be2c1cde3374c879f7c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.0 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 adcf6a1f805b548c41d22a58e92be097f7c701faf267799cad0b15e2d8405dbb
MD5 1315d6a68365e474098f139ee7c95baf
BLAKE2b-256 275709eee767059f9ed2cfd14bc6025f6398d4acbf875d1bb0aec6a08f9d15b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.7 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e4b302ac2e3542f1dde9557e703548ae60daefa12d556af3b39597dbf7084e1e
MD5 47cfec65d97b843e2caff013166a7de7
BLAKE2b-256 5545def4152cdaf6e889ee3109fbfcf8715cdd43d101ad75b4e1d7faf17b191e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.0 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 82dddcd0ca33301f654b270be09881c9416c98a2f3a4fbd407aec377fc69063e
MD5 10e98a07b1c107150a0548996286c04d
BLAKE2b-256 7da138ef40ee90eb0db4ad8833dfb51a828a2c93605ed1c49d4136465e1512d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 724.9 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 04c250b1b15f5ef2ebb96c4bd8374e26932384d81e90843474d78960406145e0
MD5 549bdec3fbafd149d2730fc617d8a28e
BLAKE2b-256 ef5c4d9c7ff059113095cb3e5aaca3c5a77dae3ec2f74998811f599026a7f327

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 689.0 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 1272680206197bdd4e788ffb6dfa486136ec8abc2b62062acf3625cdab1be926
MD5 f81e8bc9d38aeb3ad4c75c0deae5733f
BLAKE2b-256 83aab0b7fbc6aa952c0380937e678df3f9bd221a3a7d5848a689712078953137

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 722.3 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 120aa85444f3aa8b5b76fcf0688fd98efc105e6eb3e5b56dd400b933a2cfd820
MD5 7af30301e3d43d83d85c2ff4089ea723
BLAKE2b-256 c0a70ffeb321f46b5fe90d15cdd7a19745c98b385cd0669c9c7c29fe66b41ec5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 688.0 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 809e41ce001ca70350cb53aa233bc5287a702fb1256e9ed728ad84a1c4bb367f
MD5 e1b6eb0a5897381b102523144fd046c5
BLAKE2b-256 6f8c59770cc9725e7fea7bdb07ccc9d45f1e428463c762ceda5bfc3f027ad040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 722.3 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6ff42223ad4e216617ca40449b6b82402e0ca39f927e205dde7e558e7480f606
MD5 537032fb1899b7cdd01cf139dbb46369
BLAKE2b-256 8a6dec74001db59a15a9b88869e280d101cde30b051a79afb3a4e813a0a28db1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopencl-2019.1.1-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 688.0 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for pyopencl-2019.1.1-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 10485e6b8d1b098813372c78dfaab8c973766399c124c333b86abd436b14cc0d
MD5 a74516b12916c95a7b700437d863ae54
BLAKE2b-256 319ebd812865dafc538c9412de3a1f6eb15f9cae9aa68fdefb54716cb500d6af

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