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
Hashes for pyopencl-2023.1.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed9db4eabec28950faa5f1eddb6e7e1b9f83464dd942bea7532fcb2e1aa15cc |
|
MD5 | 9991f6a31bc90bb2db118c9ed0403bb4 |
|
BLAKE2b-256 | b58a1f5e20c17c5625844a62b71fda4f62934ae47401fa384f83d565153c7b75 |
Hashes for pyopencl-2023.1.3-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11a3309d716ccc76b02a454315d999384278aba98c7617227d90fe025c2b209e |
|
MD5 | a80aa2401336864b0bc59197e95b4c1c |
|
BLAKE2b-256 | c1a9e32d9b92be6db93550abb92ebcbe57d624adb33710ca8cfc0c0a75215514 |
Hashes for pyopencl-2023.1.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d46e9c63a5b80b23528f2437006732717e80b0afcca9f2f409301871317eb630 |
|
MD5 | f6d4c7ce44d753eab5a9c6404f01fbfb |
|
BLAKE2b-256 | 05135677936f8b7e3705136f80d62512f3777bc616a4009555586775101ee25a |
Hashes for pyopencl-2023.1.3-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 342b5d710a69e32f1b40be1d611ebb4d8b9a61f58514ab4c9f1bc2721f00897c |
|
MD5 | 2ce35d5ec44074e4f7c00b4636775971 |
|
BLAKE2b-256 | 776ed056da1754577e4f2954838093ecb8df4ac2ff5630660223dbc71e8a41cf |
Hashes for pyopencl-2023.1.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 069b37fef6e6aa95d2c1210877b86de776d6dcf893f7b2ce53bb3fb22975c3b4 |
|
MD5 | e0bcb92ad8a994a6e3d06d50ecafae5b |
|
BLAKE2b-256 | 27efb565678e089537a96579e7b01845ef000bd3d9ef3f8fffc321d1e5cbc1a2 |
Hashes for pyopencl-2023.1.3-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df111d4d23013937be3eed2ae08744045f2e68f73a8951a03fc018b110f7de0 |
|
MD5 | 8be82685a95843830f021619c58b9a6d |
|
BLAKE2b-256 | 8956b720f6ca13febaf3da59e652635b173dffe4f1c911d97b9871a21791c3d8 |
Hashes for pyopencl-2023.1.3-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0301158f09957988c0f8b9ac81c3e9574090690cab724469bfb68bdeae7d4c53 |
|
MD5 | 4e69a8de23ea1cac760f82a14c44559c |
|
BLAKE2b-256 | 530ef4cb497f07d35f452d9090fb9f4b4da1ada69bc0bf54ecfc762bc25caaf2 |
Hashes for pyopencl-2023.1.3-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c6028cd7061a34111fb99c71c3fd1ad64fc183c2cec62948fd5a90ffce8c9d |
|
MD5 | e2dd27da3fca2bee77be1e22c4a6b1b1 |
|
BLAKE2b-256 | ee53c8874c5b7fd1eb2d933744dc52fd0f4fcba8d6a8fe2f35088c6b91d90ef7 |
Hashes for pyopencl-2023.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45118c6732bac0c3a3d41977ad510a2dc81b797f5fe96b723adfed884f91dce6 |
|
MD5 | 18620bb70ffb06acb19bd0d98059b6d3 |
|
BLAKE2b-256 | a4e155c69b6e333237c6f5cbead9c5f9cc3d8ef53884f821c87cc2a7c69418b8 |
Hashes for pyopencl-2023.1.3-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1936581d4e9c5dbd5afc6fc3b81efecea4fcc17b45b96bebd4927bc4bd66888 |
|
MD5 | f4511884315e67c2d3b2185b8bace656 |
|
BLAKE2b-256 | 0e0fa8cc654a01108ff19240c3cecadbc37f220abe8dadee10badf89e9f79e12 |
Hashes for pyopencl-2023.1.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80f380922ca2bce747bec0887fd972e223a65d34c86097c7826ea9e459e86e69 |
|
MD5 | 5a422e501108a711890f6ee1e2274522 |
|
BLAKE2b-256 | 7bf40dce90fe353109c0c982243f552e0c195b7ddb13bc34f90d1c16422c8025 |
Hashes for pyopencl-2023.1.3-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca11dd27d6994b915b107e988611a9a237e6a043666f973bb8eff0b55c1b7be |
|
MD5 | 82790290c561f6ec480158c051901bf5 |
|
BLAKE2b-256 | 1856033307382251ef8cd9e279bcd07055617644c3396eb0ac4b9a477bf2075b |
Hashes for pyopencl-2023.1.3-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99c07cab0f90905a9e1b12c878401421943999f0cd6cd51bc920a9fa32bffb3c |
|
MD5 | d0cb3570e53cf8df11f629918349e53f |
|
BLAKE2b-256 | 8d8d92310e489fcc09ec7a37f35fa7abf96c2efa095135d4dfd2c0e51eb25273 |
Hashes for pyopencl-2023.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c75dcce069343ca3d6c406866c3173212d115707ced3f4c12e41102959d809d1 |
|
MD5 | 72f5eb5bed9d0fe489210c3697e56489 |
|
BLAKE2b-256 | 6a2a96faa833b349d9cad1d15445e4db4c2d15ae6e0286c700450b52c2e71327 |
Hashes for pyopencl-2023.1.3-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59270e431f90491a5c96279bfa15a5bf400271655fa3b46c32a5730828c9d5c |
|
MD5 | a149e442f621ce0aef4212955ad74e8f |
|
BLAKE2b-256 | 75b62fad806c6d70dfe872ca7a4ef18090fd368a3d4243a8f93ee62b9c1477a2 |
Hashes for pyopencl-2023.1.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b52a901941ffd8edfe3193890a421d00060f1dfa6326f404acdbc75869d7d0ba |
|
MD5 | 740eac90be7266cfce0e91131a679809 |
|
BLAKE2b-256 | 4d34fb7476d651f26bb34dff62abde74a64ae60dba03753db1cea45aca451b11 |
Hashes for pyopencl-2023.1.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66d30d12bb4fd570fbb15ae4c48ae8f5c6adce9eb1778aeb9331202e5a2ebfb |
|
MD5 | f18f6012f131df6f252481473ca968c6 |
|
BLAKE2b-256 | 79b02de53aaa2782c92a9d8f0283139d4181b720b9ebcd98b103d5dc1bb13c75 |
Hashes for pyopencl-2023.1.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f275ec463bdbbda05131fb25d991421774d8a3a81713c0702c1c1921bf79c5f |
|
MD5 | 14dee46986f2e6a220f7c0f381cc9433 |
|
BLAKE2b-256 | ea020f146edded4e2b05fad7ffc8788d8674e14007e7740aae520562a90a85f9 |
Hashes for pyopencl-2023.1.3-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e4ada8769c823b94c649cfef5a810c5f57225a3a575f3b11453027e18acaee0 |
|
MD5 | 4410739e1e4cfa8b22a6e3296b5c14ed |
|
BLAKE2b-256 | c130315c67e972fff8aefc0cbad45df96ade4fd065d8a17c4c6f8b5ac5d79644 |
Hashes for pyopencl-2023.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5acf05316bc4bd303243a83ce75fbf673e0f365de92d2c05b59a36129f63af63 |
|
MD5 | 456879c9fc2ba3de75e250895db6f16a |
|
BLAKE2b-256 | 603a8547e33cc8570d557414730657864bab5d4ff97d32fc7add8e4d7d6b705b |
Hashes for pyopencl-2023.1.3-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 750c2b5d21aa62dea9b3231e84e54ec532c33f1f575dc8c0905edd78fbc9879a |
|
MD5 | f9ff41dd09c5f3d51d89a78ae6f5769a |
|
BLAKE2b-256 | bfa9b5fdcfc987e76edd460ef4d22d4018c8bf8594167843ddfc87a4f0073258 |
Hashes for pyopencl-2023.1.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ed6633020de23515aac7b06124316db08b9eb659be2bdb6e6eb749b4035c86a |
|
MD5 | cdd8f9fc2889c0b35bdfa2c00510e21e |
|
BLAKE2b-256 | 4f137deee2b8314c211ce5e13888cc663178ea2eeda60ab92bd1175ecbf714e2 |
Hashes for pyopencl-2023.1.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13db9b3082731341adc8471064add8265d1755cf8e80ec8935241bfcc39ffb3c |
|
MD5 | 12b110dad0d91fd8fdf98fc7ed45a2dc |
|
BLAKE2b-256 | cb9a4bea96b4fc179eeed1a7d42d125b5ebca8fcb5d15bcc1a396639e208d123 |
Hashes for pyopencl-2023.1.3-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405002eeab47de726222ccdb68ea5034b21c52ce1139d58ef2b0582e7bb74752 |
|
MD5 | 4c59ed27b411f5d696e9c4a75f423e35 |
|
BLAKE2b-256 | 247bc63fda3b6dbf44e91cc438de288bba1df0ffe6f1009d73c582b16e233bf9 |
Hashes for pyopencl-2023.1.3-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e01f09c443e2539769894dafe090b6d226d011cd5fb73b61a651027cf13c6ac0 |
|
MD5 | 271a37679b569cac01c7cf14f5445718 |
|
BLAKE2b-256 | 1838a43e2db21526f84eaedcff5b472b1977721471a87e06a925ff7e2d18172c |
Hashes for pyopencl-2023.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26078a2863ae116ef5c1bd7c6c7e9bf2b4be2dc14181fc0b328a427f6c04fde4 |
|
MD5 | 0211b77a57caccde84eca989c7bc6c23 |
|
BLAKE2b-256 | 6ad8c676f1c7fd10bcf8683a6e667d7bc40afddd3860f4fe2fb82189ff1d91d0 |
Hashes for pyopencl-2023.1.3-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa873037e081bf430ddce06e612cd5599247bb50742c2bb401cb92664591cfd |
|
MD5 | 948275b247998b2cf34eb7829a11dbfa |
|
BLAKE2b-256 | 7b1f52e7a85f8a80f071b24d5b067422499a5e88ca03fa874e86b82a3a9bd1c0 |
Hashes for pyopencl-2023.1.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec44e1bf36ba386ab272b7a3f9390b7777278127d0e1391d484a1145e74ae69d |
|
MD5 | 702d7d91729ffa96779a24faab0a383c |
|
BLAKE2b-256 | 12abf59a98bf473959e4ca4238e305ea05ee305bdfb88d6320ea6d5e758905e5 |
Hashes for pyopencl-2023.1.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77d07800e87cb5719a4935b3ed0dd5cd2393a4a7b5725d0af3273f1664e72343 |
|
MD5 | 2c6994987fe008a9c76ab215d1606f5e |
|
BLAKE2b-256 | 2baa6c5a9ad931e604617df76d385a0af1277f9285b253cbfd137e49c7565ba1 |
Hashes for pyopencl-2023.1.3-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7997a206a52a7072dfaf90cfa74fb77c6a7079c625f72afd099dba1be7af6abd |
|
MD5 | 80d44096a51170a239d3a6349869c82d |
|
BLAKE2b-256 | 2195ef63ca8027f2e97f397c563afc7c819be2dac4f35237b1fc2eceae586d3d |
Hashes for pyopencl-2023.1.3-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfa34302676174f1ccc4868f2725c09e6e0c75c647c52e4ba47ebdeada9f980b |
|
MD5 | 71f03d4efa347c3b7030a694e2a5c021 |
|
BLAKE2b-256 | 010583ba20a92e0c78c9da6a5c5608add8951086ce15b72a94813e131ac0a112 |
Hashes for pyopencl-2023.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6fdd8e1e63f683e486d9db24a7c4442417cb99712fd4519eeb2763351db5af |
|
MD5 | 09d79832460e440b5fd467ecf2cf93ab |
|
BLAKE2b-256 | 5e29921f5511e1978f77f819f31baa211d55761cb4f84fd9ffbfe3b9e3df8dd3 |
Hashes for pyopencl-2023.1.3-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 034233cb7fb5340e1e6f37a2cacee7daac08a1639f811efda185a42c25649e86 |
|
MD5 | 5c671f142edb1202e4e969407cd85991 |
|
BLAKE2b-256 | fda82c2d05ee81d5cb19ff5e553c233f1bf6250083013c946d39b466af699e47 |
Hashes for pyopencl-2023.1.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f774792a7e00211c44ba3066a2704d7177b408be3043879535fbcf278b7cc6 |
|
MD5 | 3274448557e6f0b42a23440e897f2f95 |
|
BLAKE2b-256 | 0f69251d011a7af914d27cb9916db86aa924f084e349d4a15e186371aafdeeca |