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.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38c1ab4ed770eb2b2f9c34bced444fc81e96dddd188848f028d36cd16fe9fcb9 |
|
MD5 | 7fb20230f63007650c0a653606fea32b |
|
BLAKE2b-256 | 422a011b56b89a5c25584ff90c47126c4872c8d2b79c0fa742f452a544c697c3 |
Hashes for pyopencl-2023.1.4-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c059f15d71c680e35704650bc02d7026b5566687fd45ca9f4c789567d0731cfc |
|
MD5 | 244fdc0e779b11ba93c4a36e8c334044 |
|
BLAKE2b-256 | f03df5c6309893aaa4847a51e94d18ea0ea7af4c572b2a37647333d12fb94fdf |
Hashes for pyopencl-2023.1.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35fc3161b2f609018b6e1b22f4aa79fb571a388b61e90177c1d474975af15ce8 |
|
MD5 | da1a26ac535ca9415dde52e8c9675756 |
|
BLAKE2b-256 | cd448f408f4f5fb6c4fe41af6ddd3706120d37f8454abcbd29ff5c36ce074f88 |
Hashes for pyopencl-2023.1.4-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c926fb5886a561fe01be907575e396096a75fd35a2a6df5fc080c19959ae8c5c |
|
MD5 | a42b517ffc305442a41c7365284f7bdc |
|
BLAKE2b-256 | 149d90170c3abd1cbb915bfc7288c3e2f768ca69503e9324af336f8490db69c9 |
Hashes for pyopencl-2023.1.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c4917db2d0ec5ea7dd3c0cc66dc6a5acadc39a577a6b532293dde57ba3b23fb |
|
MD5 | fb019a7306ddbfa203059c7367d39de4 |
|
BLAKE2b-256 | af2c158cba55e3f460bff8befdc063670737ccac9cf23587d2b5bfc145f0cc8d |
Hashes for pyopencl-2023.1.4-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d195dad3d3a0473373bbf173671900d4519662824b5a81ced5b491cfae5c5e23 |
|
MD5 | d83eeb51839b5be067e5f6ce8050c569 |
|
BLAKE2b-256 | 7144356699f4d72accb73228f1fc2e43790271f15c8feb5a21eeb429c5b5b5da |
Hashes for pyopencl-2023.1.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bbb02f230b969109bdf00f36e463fed1de6e1c70e088f2f2f9b41fab128f20c |
|
MD5 | 51782f57644dd8d7c36130fe71564af1 |
|
BLAKE2b-256 | b9fccd37cdcef60aa2a021941c16bbb7484a87a65b4d8a38a02fd00374c6968b |
Hashes for pyopencl-2023.1.4-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1767616f795c598531cd19d89f451db7e25393add300204e7d1a7dd2a017709f |
|
MD5 | c114b89d61812e10d90724a107ccba2d |
|
BLAKE2b-256 | d9f8cf4a3013fbb1f72cefb77688b5fff6d16c18f9ab010cb0bb558591cd60c5 |
Hashes for pyopencl-2023.1.4-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6a0ebbf67b2ef7098bdf3632177b71c7430883b2a48b2b09b84a02d8cbb4b0 |
|
MD5 | 7cd8fec4e9678b660a91c2181274a161 |
|
BLAKE2b-256 | 1364907d8a8ed9382a3c0875bf082ecaa12813c01f46403124306f23e2212767 |
Hashes for pyopencl-2023.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c11fc7445e21dcd97bd8f5534531ed7bbd09ded853b520157623f48fad5b739 |
|
MD5 | 65aaad28408720f52d2ebfd461e51ab8 |
|
BLAKE2b-256 | 35abd10b0c204e6ea030b6c6a1eeec8397fe93a6e0dd34a983fe2af75575e738 |
Hashes for pyopencl-2023.1.4-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef091d4a4802b267b0aa5ec46c4ebc00fd664d9178ad9866b485006eeff180b4 |
|
MD5 | 335152e1e81220c43bf4f0780eebb95b |
|
BLAKE2b-256 | 9cea717642a725a90d4e5f29f4cf415184b4bc6c8b267883e0fa7e16ec6398f2 |
Hashes for pyopencl-2023.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230c63354fe6a18043e67042769ddc5e329002fb55fb99f692e4f5c8fcf3007c |
|
MD5 | ff7e04fbfcf0bef85972235802340dc7 |
|
BLAKE2b-256 | 38d3bfa0f0574317f58fd441b3e9f79c04fc2e3b0e5044ec9a242be318474966 |
Hashes for pyopencl-2023.1.4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab31b35875cecd2b1c10ac47ea06e224c5881cca942fba94387317357d73c0b9 |
|
MD5 | c33a04ecab889af29e56bee733a3ce1e |
|
BLAKE2b-256 | 252c00b9ab04ba32127b8504b4a5a157d85d6ab2325e0a10002513e87fec4024 |
Hashes for pyopencl-2023.1.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f7889dce94dba10738225fabec929fa977bfe8777a64f5699f6f2fe2b00742c |
|
MD5 | 9e953c16503c1e273d9f973f462a57a5 |
|
BLAKE2b-256 | b4c7d904187fac720e59e1a060504caf2479a7c35efd7adb39fb75a911fc5d7d |
Hashes for pyopencl-2023.1.4-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a561e42ee3030b2966e7dc5cc764e705d9ff1bb5aa1124fa7d6ba4009ebfb96 |
|
MD5 | 8444de2938f5a12469678c8e6fbfcfe4 |
|
BLAKE2b-256 | 962a1e1b7618596c97a989b565771e5115498064d2cc3b4ec36490e741095414 |
Hashes for pyopencl-2023.1.4-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d79cd6445a86b4db7399488c301b49bda5fde6c1455c36b1ce58e03c690916 |
|
MD5 | 1187b7618a14bfce4d3009824d064b92 |
|
BLAKE2b-256 | 07d2991013092828eb8a4b3d9738d96cf2caa51c45e174c67053699d3cde8bd8 |
Hashes for pyopencl-2023.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4102eb3f5b9fe4b08c7900820a908cec3004e9a6990cc7202162ae46e07869d |
|
MD5 | 44417b2e3ec7e644a8ec6f2b9950b46a |
|
BLAKE2b-256 | 8cdd3199bfe11355e90d622260205c1fbacae88937fd483ae39dac67946b2b15 |
Hashes for pyopencl-2023.1.4-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742fdb18bcc933f20b795c787fe513c69b83f074626bc62ff3c9cd1c8b243022 |
|
MD5 | 6fc2d63cf8a878dd13884e97799f78a9 |
|
BLAKE2b-256 | 06028fedd8aa6060b6999895aa93a67636298e56e03b04b8853fc8f4a0c9a278 |
Hashes for pyopencl-2023.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55f09e9d12a036830d71f60af9233ff493c83ff2f99b472baa1f779688c816b7 |
|
MD5 | 47c2499945e5ea474e92caced0043fdc |
|
BLAKE2b-256 | 83a959da89338e72fe678e1b90a8c10e52b38f62786d93d3ede7a282cea3f66d |
Hashes for pyopencl-2023.1.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46a1158956a59e73a57e98acc681ff01a64574d0b3715634703437aa8b7c785c |
|
MD5 | 39057579bed5736df6306f1b5c6af9fe |
|
BLAKE2b-256 | e4c4f04525db9ff48a9476a12296690f79dfef1046b6217d57c7df5fefe13be4 |
Hashes for pyopencl-2023.1.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a0a3c8389f44b51c0a916dc8e532d77ea37ab5a11f10e1ba97cc8f9a634695 |
|
MD5 | 50fa0c9fb394a3d89b0a2a9fa67e3d8f |
|
BLAKE2b-256 | 4c93bbd089157591666b7983233459508acf6362a41064eb4d8651b91da9efa4 |
Hashes for pyopencl-2023.1.4-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f199eff64be353f5badac62576d14cb40cc137c9f92f5260452de097dd9fe7a0 |
|
MD5 | 7fd259b4178ea6da1153e500eeed291e |
|
BLAKE2b-256 | d7d2b565d8efb72b575d01a5bbd935d60357a51f09fe76aaba7e3d263f05b8fb |
Hashes for pyopencl-2023.1.4-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08ebc3d5776ec2a8853c11234d605754bdf0d5af8322a08d558d661eb85c6fa3 |
|
MD5 | 6bb65f1addbf5d2c3b02c4bf835fe256 |
|
BLAKE2b-256 | 47a720d5523bc54a48629f3ee9ed9cc216840861305cf39fbc84d87f974664e8 |
Hashes for pyopencl-2023.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d8cbe0d2121babf7daf0bcd6ded687c191c6d2effbac85c5421659fbc26947 |
|
MD5 | 63bc6a9ae85ce548b45bc12f19321a28 |
|
BLAKE2b-256 | 45da8f534c5cf3251d0cc9e8185ef514d849bc2e26d2f91c4c2c39e3dd4545bd |
Hashes for pyopencl-2023.1.4-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18e99bb71267ce5223814177ff8c73e98057a70d20fc6555050d77d98b01bba5 |
|
MD5 | df320e0273a395b01b322f2d6e157ff8 |
|
BLAKE2b-256 | 27f1363f4ae252aece41187bb88a39b3595548be885bc100a133c65ce21a8060 |
Hashes for pyopencl-2023.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bdf472b8e36f81145ac526d51f550ba539b765199da9da16732a222c7b85bee |
|
MD5 | 4e523c720348de7474e6c25245d96429 |
|
BLAKE2b-256 | 45a34e32cb01063ba04724c125253089b256d9c5919f61e2a2969f361b28351d |
Hashes for pyopencl-2023.1.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce71196cee0171a923d9ef6a8c21ce26fd7342ddaee88a29aa372ae3295f5257 |
|
MD5 | 6338e47e0e1046b8f24877d97c2e427e |
|
BLAKE2b-256 | a34cfd5d634fc4dcacad1089a10ca4f83577139ee960030b418654218ce6e884 |
Hashes for pyopencl-2023.1.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daeff57a66c7a2be03345dd919507f2a2b2ed4ce64c3d8416fc01fa947807e59 |
|
MD5 | bba283d76e46393bca3d67fc4ebea62d |
|
BLAKE2b-256 | 00ff4649e789843ec79eb2f35853e3b1e5d2e37a6d8b77cae42e8bd05d979f81 |
Hashes for pyopencl-2023.1.4-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d61a6ca8c2d8f2d7bcf106abff6ac58cb79f335303b02b90b66591b25d1af4aa |
|
MD5 | 853c037a247ce266446de89454b9f2dc |
|
BLAKE2b-256 | 47fb872ee15adea31fb0ee4604965e03f872f376ec5126c84554426766084529 |
Hashes for pyopencl-2023.1.4-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63be569b566ad627e7a1331db6cfda3eb82a2076872549f1c89f4e24ee12601a |
|
MD5 | 6a3c82a8c9c3a83fa7198e3fd0da9425 |
|
BLAKE2b-256 | 5238835099d03db2acd2e1aeceebbd6bdb3eaa1adf6857c45c54983b67d643db |
Hashes for pyopencl-2023.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d148b21de9f7aa542b576c09ba3c68106658c8a3429f41c0120c7cd4cb55970f |
|
MD5 | e59b31c84ef2113cd3e14ff713f675b0 |
|
BLAKE2b-256 | 9ed19b95de7244e8e56320fcf45f86274c3f35b31467e0a57ffb81a2ce3b3679 |
Hashes for pyopencl-2023.1.4-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c658eb9198235e8866afedb9b32bad4c6a4988c7dff2103e61794cd9ea261b2a |
|
MD5 | a4110657b4a728e5e94eddfa7a170e87 |
|
BLAKE2b-256 | 7a6aa7bed8d66cc49765a2ce3d2a21e2ff074343af03fd6a513d32d5061a173f |
Hashes for pyopencl-2023.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3f5861de88a7d5054cfc8a0f78c42c7b7cd7c65c43a1426a72411111b024658 |
|
MD5 | 89d113d84cff89478687c092e0a5b03e |
|
BLAKE2b-256 | d80a84625eeb9636d634e75ac3d019e37b9008aef5e2867c1961651b84c915d3 |
Hashes for pyopencl-2023.1.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae4b7f34aa56a4dc5ce5b4d795dc872f9a1aac66f15ded575aeabdfd15da0bc |
|
MD5 | dc266fd900d62e6ad45b563b9103e991 |
|
BLAKE2b-256 | de0a9931ef7e1295a42a6c625e0e70ae332680cc05f7799760edeb3f7fb6dea8 |
Hashes for pyopencl-2023.1.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 802e5eb27fd311af42133bb2da83b5777a84f5c7c11e0a4b8d1d50d265b22e37 |
|
MD5 | f5c619fe29bb32bff36d3b702ff20768 |
|
BLAKE2b-256 | 25103fc11e4533454fe4cb380b56183f08869f95501bda4cbddc0f2d3457e145 |
Hashes for pyopencl-2023.1.4-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ac9e8e84dc11b82df51916cf41f34a9ca327adbaf9f4a03a8d1f4f1e1f35382 |
|
MD5 | 84f9d6ab15f07913e03ed94309ccfa23 |
|
BLAKE2b-256 | 18ab360fa62b9fff425829d522b1e4cb40e2559cbe405cd1db863d0ef539ef40 |
Hashes for pyopencl-2023.1.4-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca2d4f14e1fc716b1928679c3182595a4862f577fa0f4a5d8edf37ef8db059b |
|
MD5 | 481c4057d83427703a0ab76754878a46 |
|
BLAKE2b-256 | d97d35c96f558e05dcb9824ac5063aed57e06e7782663fdfceb000f8b3533f99 |
Hashes for pyopencl-2023.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571c6430c6fb046643040d4a6d99ee677e4c6c99b09577dbb51177001e93c21c |
|
MD5 | 19d32542c76688bcf18a94ba35db958f |
|
BLAKE2b-256 | 681c32688b8e8cf7571fc86c6744b1a3672e0586ed0f579c435eb0a19425e40e |
Hashes for pyopencl-2023.1.4-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f790dda26812cad5288fe1831158f55c48e6ede46ae4a37db66394645b07ef8e |
|
MD5 | 2d409b6d534e11a1ccf02aa9bb252f77 |
|
BLAKE2b-256 | 2369239542fa86c1cbdb1fe4db2db8bb3d4f50b0c2857b2ebcf25e7d94e55ee7 |
Hashes for pyopencl-2023.1.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0649a9d6249612e79cffef46618cccaaa9eac7b0c3f1833a3576ea0bd985d887 |
|
MD5 | ce595700cc06ad57c12a0860db5bd798 |
|
BLAKE2b-256 | 3e9e17ec084f355392c22a967acf873f74ebee4decc6b2d6f2fa47fcefcc981b |
Hashes for pyopencl-2023.1.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e444320491744fe52e49f87674c931219a5be254a8a129175db61378f5b6f18 |
|
MD5 | 976fe113551645d8e45dc85f5ad24358 |
|
BLAKE2b-256 | 1fd3755fb6503f715b2bea790e82266825d1feb25202764edb357dfc2c319443 |