Skip to main content

Python wrapper for OpenCL

Reason this release was yanked:

missing compyte https://github.com/inducer/pyopencl/issues/765

Project description

Gitlab Build Status Github Build Status Python Package Index Release Page Zenodo DOI for latest release

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:

  • g++/clang new enough to be compatible with nanobind (specifically, full support of C++17 is needed)

  • numpy, and

  • an OpenCL implementation. (See this howto for how to get one.)

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

Uploaded Source

Built Distributions

pyopencl-2024.2.4-cp312-cp312-win_amd64.whl (490.6 kB view details)

Uploaded CPython 3.12 Windows x86-64

pyopencl-2024.2.4-cp312-cp312-musllinux_1_1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

pyopencl-2024.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (699.3 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyopencl-2024.2.4-cp312-cp312-macosx_11_0_arm64.whl (442.2 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pyopencl-2024.2.4-cp312-cp312-macosx_10_14_x86_64.whl (449.0 kB view details)

Uploaded CPython 3.12 macOS 10.14+ x86-64

pyopencl-2024.2.4-cp311-cp311-win_amd64.whl (490.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

pyopencl-2024.2.4-cp311-cp311-musllinux_1_1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

pyopencl-2024.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (699.4 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyopencl-2024.2.4-cp311-cp311-macosx_11_0_arm64.whl (442.0 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pyopencl-2024.2.4-cp311-cp311-macosx_10_14_x86_64.whl (449.4 kB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

pyopencl-2024.2.4-cp310-cp310-win_amd64.whl (490.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

pyopencl-2024.2.4-cp310-cp310-musllinux_1_1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pyopencl-2024.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (699.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyopencl-2024.2.4-cp310-cp310-macosx_11_0_arm64.whl (442.2 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pyopencl-2024.2.4-cp310-cp310-macosx_10_14_x86_64.whl (449.7 kB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

pyopencl-2024.2.4-cp39-cp39-win_amd64.whl (490.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyopencl-2024.2.4-cp39-cp39-musllinux_1_1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pyopencl-2024.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (699.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyopencl-2024.2.4-cp39-cp39-macosx_11_0_arm64.whl (442.3 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pyopencl-2024.2.4-cp39-cp39-macosx_10_14_x86_64.whl (449.9 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pyopencl-2024.2.4-cp38-cp38-win_amd64.whl (490.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyopencl-2024.2.4-cp38-cp38-musllinux_1_1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

pyopencl-2024.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (699.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyopencl-2024.2.4-cp38-cp38-macosx_11_0_arm64.whl (441.7 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pyopencl-2024.2.4-cp38-cp38-macosx_10_14_x86_64.whl (449.2 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pyopencl-2024.2.4.tar.gz
  • Upload date:
  • Size: 419.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyopencl-2024.2.4.tar.gz
Algorithm Hash digest
SHA256 7d0a4a7d559e5aba5f2e6494057a09a110ef56b72d2c3aa21fa3408809c6586e
MD5 2eaf88605c6b2ca8c39abf2634988744
BLAKE2b-256 f51e992f1bb0c909ccc57eeb842c723d253e1308927777c8115ebefb96628722

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 92c682d84e1c5c3f15419e4645d7635e120408226257d51a06a6d8310d3d6361
MD5 b3c30ef7fe2a85dd3af3bfc169d93bb9
BLAKE2b-256 df63de2ad202ad29e5824dbfa90d4377778eda8f8b78b15fef4dda4797ad5d63

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0ff950e5557a662b351dfec33f8ca199a008f007925b461ac505d2e851591a11
MD5 f5eb378cf6b7dba3e6a3fd41837febb9
BLAKE2b-256 11d5f4c70784b614473b599d9199694b01e1be3bee178237e3ff3fedaf58376e

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4ad4ab0188b17d6aa0bafda3900218c33d53036ec6c6dc617deedc28f08394e
MD5 044f61c110c32164f925f025ff514896
BLAKE2b-256 8cd37988a8a75da1662c4cb164d9eb5ec43f5094b11e83749e442fcd544c38ef

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91539dedaa87042275440ee38f8a08d28cb389cf04437d8e274893f8230b1dc1
MD5 7926e9382f6a60a20e10739ad82aced4
BLAKE2b-256 b73524d9d646de90fb9f5a87516a3fc00425eaa0261a04496abcaed37e6e1ba1

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp312-cp312-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e4b82718f98278ae4c008a75b54b9d93ae9e8566c31ab0823026ab057216145c
MD5 57c514f9762289743507a4a3ac255394
BLAKE2b-256 f7a842a258aa0dfffb0acce1d4c58915450ea9a017645156b20171ff6c812361

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fdc8619d304058e7414a9a620a240724fefdcc06fc5a3076dd9aec07428d1254
MD5 2d627946c9f74e6a99ce86a6870abd36
BLAKE2b-256 3646ea6ce32aa94243fd2fee2c00b217770f92331839375d18b14eed5ac0a232

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 3db3c636d4b93981cb70f7b37de8315d445ef80d641063530e783e616fa59838
MD5 fb2862ee2d70aef266f11e76f11a705d
BLAKE2b-256 cf611850d9251e5054d403eeda3b8756a0162efaae5e1323199ed93580d05059

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 635e3b9d549708fc26da7058d6fee8e6c7af83d0c184e86f08841605e68c07df
MD5 d2da6b5d9a17dcde22dede43e4b2619f
BLAKE2b-256 064e6351bf5b793cd14b86985cce1996436926414d06ff261001fb9451b956c6

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bfaa30e1b1f4451bda2323a2f58f50678ae7f52dc416c4bcf3ce4eb0b48c3e8
MD5 eed69a33aeac5e9664e45bf980457628
BLAKE2b-256 5169b2379431255824ae024312afbb3641a227a3c65ff9c07383cbc5ef6f5966

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0cbb7e0507ebbfe750de8fafc073e2172543f9b77d70766b6edc84a7a13967bb
MD5 6a4646c52d9af8c013fa81bfdb48f1ca
BLAKE2b-256 f8197b0a873d84bad2b9a63433592dbf412b96c3e57ceb3903bf82c51807ce9c

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6f9b0b4a424b7e3fc3ebd8f847efb9c5bdfb1cebb4d4645015140cde55774966
MD5 dc8991e8f0d7a50933f3f879db1654d3
BLAKE2b-256 ce6e22fb51ed32de4e8e873b0004c3c81150935e52946c2bb2aeb3cb60cd0eed

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ca1e69929218bc92977c4cb340847b13b91361a9159c2c43a5b3970706f0f98b
MD5 fc8169fcd62cec29159ee929557f40f3
BLAKE2b-256 7bfe401de192d4518da29f1e0ac1f8f24e203468ba022d53e24444aac7a41fd3

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 08b4ffaf99b1a9387c81787d0a3746b301c4eb8c6d5f586113052974a76aa485
MD5 10bdda0f4326e7ba3eec226bc4f13c6d
BLAKE2b-256 95b73173423204cd50cd2450ac4acbde4e930abb15e5c1cf791518fefcc6b24e

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 164303d6e79589019a0af769c54d52918f5dbd46abb480a02832c68acc743d3c
MD5 90dd2f9aebffe6a895960eb4687f5d9b
BLAKE2b-256 d6edd3bfbf2c7c3dd328c25bf8784c1af96d2e86fdf46c6b2b15e6583f1ea8d0

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 03e508e7b9886a800662c70cb2f1db977c0166ec31b09d4eb08f0a4fc813449e
MD5 a2e0064ebb481de13c5ee04dc9f9a83d
BLAKE2b-256 e683094abd00c9ef0e1efcaa4b1421dd4600ce6a31ca95b1fe2ad817d0c76626

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0b56958dd5c6be27471fb2a21795693905d70d3b70be9b4ae57258983cef617d
MD5 c4450783471ea1e883881c638cda9194
BLAKE2b-256 b5b88f0702f104b67c1f8c49aabd20c8f7e2b34aa0b1b9ff9dc0d4e7381231fc

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ba0e6e0dc37b6ff6cd4d79da5b897ebe5acf05cb2af76a19b464d796698df71b
MD5 483b8b9b7d3e7df133a8b1deaf1eb37c
BLAKE2b-256 14d5b34ee4ec61c25c2511d34fc5c96f0b2566bc7ad876d1651650aa2de8127f

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 45084ca0606edccc3f51160235f0fdc8cfdc3d81eed3108da6ac4444306b1896
MD5 91bafa9698ce7258c8ceb35ace593ca6
BLAKE2b-256 642697cf51558c5b68753b6d0845feb79d555267212cf82dbf55a8d2b28c3cff

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29c68e619960100885ea029b62070271f4c5395601b1c9048e22e269b3fd5a75
MD5 818faea974c43283e4b9b0343c25ac37
BLAKE2b-256 d6b75f667683d2d4f5017957fb7c938a0777419b81f738e8c1c52826405fa552

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b30743561d13bc9920e2c0dc3e65029dd77ef95aa4cb448a1ef46e02925420f3
MD5 6f0ff9b4785cd8f7fda1953702726486
BLAKE2b-256 98a0b7684ac55398063e32c20b332a1c7a110a453c83315aead766296c415a5e

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 acbf99bfb9f416be394054424f1dd2d1bc8fdd6b03bf595b934b65ff5dacb966
MD5 39a792510e2b9845b101d05c226795dd
BLAKE2b-256 2b8fbd63d40974e3680293cd8f6109c65534315be248d663f715c4b112d51bb1

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 af7d0604262bfcf1f159a18a7fc3ad11534e699c03b11500150c66f2f7ecb9a1
MD5 296a7446eb9a390c7a1aa3642e54adf0
BLAKE2b-256 3fb3e48242e6ebb55a09072f700444c220c5bc94788a304be05d324c2862dcd2

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5bc1e2cf08bea0ccb6d12e809c1b2b6e63e242d8ca5e6177a5110d9322d7eded
MD5 9489cc7b0d01bddeb4dbbe7ca87827f0
BLAKE2b-256 72217f2ac48139e5b7e7f05104befb6963294e424d59ba1098eb51b1e72e5e71

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb3f45272d1a5900bcbeaf7b889f922ab00973df6e9399f7e60668b6b0830258
MD5 f46028ddca7d479c5190029a42ae63d6
BLAKE2b-256 3217648bdf92f0db73bbc96cd26e702d55f3bdec2e381aac1819b154d9a750b0

See more details on using hashes here.

File details

Details for the file pyopencl-2024.2.4-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2024.2.4-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ca121fc6865c6d80bdb23c5248e94ff22652f6b68c424afec1b95ba9865072e2
MD5 485c453c07c171cf550b43674f86de07
BLAKE2b-256 0859961e2aecec2b0f1bca21038cfaf89cf42a125d4ad932e15040bb33c1a6ea

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