Python wrapper for OpenCL
Project description
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.)
Links
Documentation (read how things work)
Conda Forge (download binary packages for Linux, macOS, Windows)
Python package index (download releases)
C. Gohlke’s Windows binaries (download Windows binaries)
Github (get latest source code, file bugs)
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
Built Distributions
File details
Details for the file pyopencl-2021.2.6.tar.gz
.
File metadata
- Download URL: pyopencl-2021.2.6.tar.gz
- Upload date:
- Size: 450.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | df208546d28a3274ba7b554d50643ed1e393b8f3f75a43b24b83d3ee76597587 |
|
MD5 | 099debf7c284dc969db668c926056654 |
|
BLAKE2b-256 | d144e5a726c0fbe74bac4ed7542fbd499216bd2f0db88e86136aacf2d9b23896 |
File details
Details for the file pyopencl-2021.2.6-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyopencl-2021.2.6-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 838.3 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ccaa635759b1668d02322fd77a224a91e2d0c1ece79517a38870eeb6d89f7e1 |
|
MD5 | e39e4f0f1c3e5925b605335fc3bfe0e0 |
|
BLAKE2b-256 | 25e0fdbae5d6d39e6dacbd1872ea8a332a379e098026b15caf0aaf524085d6f0 |
File details
Details for the file pyopencl-2021.2.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyopencl-2021.2.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 861.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b65d0ca37a3013fd8f03cc3821e0a78aca5dd140b2be2b99c86835b2405ec94 |
|
MD5 | 92b9502f28a0af34172106fc7dc684d4 |
|
BLAKE2b-256 | eae4ef04c1f57a77f5736e5bc9c61bac98070a60f5d0bc0d4c3babe5a8a0b47a |
File details
Details for the file pyopencl-2021.2.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyopencl-2021.2.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 860.2 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b9e24ef3013cd8d36ee7443497549ba760d30d04ed460c8dfc0f1bef6e9fa85 |
|
MD5 | e47885e67c64195b9c874862075b990c |
|
BLAKE2b-256 | d2afe19d04e14dd7736314e6c1e22a2d83b22f8765a266dcd0ed8dd7dcd67de3 |
File details
Details for the file pyopencl-2021.2.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyopencl-2021.2.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 879.0 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7218662cfb24210a69fca7fbefeda8bd2da6627f830ca783393c2d1f82551cfb |
|
MD5 | 9849f305b69c86c7fc180dfe609dfbff |
|
BLAKE2b-256 | c232f24bda9699bcc8f49ee5b6d6f86e0ea9f342560401fe9aefde578367bff8 |
File details
Details for the file pyopencl-2021.2.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyopencl-2021.2.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 878.2 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd54ee22814b29fee8b0c66ab9dc59384098d864ff2885fd677b7d5f122f221 |
|
MD5 | d8598eb070377f3cf116bfe264bb8409 |
|
BLAKE2b-256 | 5a3a32788e71d2e7e024a07b3654a2d367285b996b8e6be152ad3f6020b9df2c |