Skip to main content

Python wrapper for OpenCL

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

Uploaded Source

Built Distributions

pyopencl-2025.2.5-cp313-cp313-win_amd64.whl (470.6 kB view details)

Uploaded CPython 3.13Windows x86-64

pyopencl-2025.2.5-cp313-cp313-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

pyopencl-2025.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (730.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyopencl-2025.2.5-cp313-cp313-macosx_11_0_arm64.whl (425.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyopencl-2025.2.5-cp313-cp313-macosx_10_14_x86_64.whl (444.6 kB view details)

Uploaded CPython 3.13macOS 10.14+ x86-64

pyopencl-2025.2.5-cp312-cp312-win_amd64.whl (470.7 kB view details)

Uploaded CPython 3.12Windows x86-64

pyopencl-2025.2.5-cp312-cp312-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

pyopencl-2025.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (730.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyopencl-2025.2.5-cp312-cp312-macosx_11_0_arm64.whl (425.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyopencl-2025.2.5-cp312-cp312-macosx_10_14_x86_64.whl (444.6 kB view details)

Uploaded CPython 3.12macOS 10.14+ x86-64

pyopencl-2025.2.5-cp311-cp311-win_amd64.whl (470.5 kB view details)

Uploaded CPython 3.11Windows x86-64

pyopencl-2025.2.5-cp311-cp311-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

pyopencl-2025.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (732.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyopencl-2025.2.5-cp311-cp311-macosx_11_0_arm64.whl (425.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyopencl-2025.2.5-cp311-cp311-macosx_10_14_x86_64.whl (443.3 kB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

pyopencl-2025.2.5-cp310-cp310-win_amd64.whl (470.3 kB view details)

Uploaded CPython 3.10Windows x86-64

pyopencl-2025.2.5-cp310-cp310-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

pyopencl-2025.2.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (731.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyopencl-2025.2.5-cp310-cp310-macosx_11_0_arm64.whl (425.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyopencl-2025.2.5-cp310-cp310-macosx_10_14_x86_64.whl (442.6 kB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pyopencl-2025.2.5.tar.gz
  • Upload date:
  • Size: 442.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyopencl-2025.2.5.tar.gz
Algorithm Hash digest
SHA256 eab75b8b15c45c8cafe938759b9a82f1da62eb1c57ef7bc04bce21fcbb60f485
MD5 670ed8f3be56ec270db301b538f8c9fd
BLAKE2b-256 274c1fa950dd7dfb3bb9492cdf2acc85b77e569d2cc503491bdd38e45540f1d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5.tar.gz:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 621d044be0b8c0f82c90bbd0691b8688956dd62c5914ebd06849a90c7c81c153
MD5 6d5a5ca47f82955cba6f73ae68ce435a
BLAKE2b-256 3a6ad51a861bff6c9d3199c1fa21b67b877c3ed5ad15aeed13d3251175791b15

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 36fe3d11d7abf00d29a2227c008e4dd8b3b8f184bf4c66545334edc8306975c5
MD5 c8f4994a07c94ad173a152f8552565d7
BLAKE2b-256 8c06bbfc825ce5c79251d8435ab5e12260bdb95f023583289a5844e7bfd9beee

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e05f12c1bc0572c97035c5e2540cdb92ca48dfefdb7faff53edac2f9390fc3ad
MD5 4f7c336cf6683ec51605b7b1d633142f
BLAKE2b-256 592900e11e1b23d47fe8bb2c1de8695ee97f1022a755da14599710aebb254976

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 baa34852659aed566c6ca19635634436fb0fc8ef9098180722732d372d105cb6
MD5 95ffb73abc02062d82e7a945bf719e9e
BLAKE2b-256 93f03006976dac49b4172fcba65f09c36fa3e456b4a1621909285de7fea76957

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp313-cp313-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp313-cp313-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 28b7e5deb7733122471d1e3087c37c9a630e7b09028bc9f0d0e810611b055fd1
MD5 6db22270d4cf3708edff4ca3731d4fd1
BLAKE2b-256 abbeb9dec34636e652ee3ae715badf1b789d5db55e6428f1ee31682b438fc695

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp313-cp313-macosx_10_14_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6639051980df5afe2d1bcb116084a436ecc073fa2bc87d38106aa1f20fac0cf3
MD5 60057ab889cb94ff1169c35883dbd34b
BLAKE2b-256 0c017f92cc519aa65792b903dc2bec1de5028216c6f9864e558cf8529d950a87

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0d59e17acc31bb95d8a0941168cdae3cb5e91509e026564ce1b4cb5928d23f09
MD5 8c6ab069955a70cc63d87dbd62fc31bd
BLAKE2b-256 3f7ad296e4247e435957a306b348091aaea00f9df09abe1b4958362ba305da20

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1d4b8d09d980af2fb93d95304dfa53518d510610e5b96786edb6294c96409f12
MD5 f42d0aab9021b01b0f2e0752a7502409
BLAKE2b-256 ea49cea3e9302a998229d0ba458eb229496a4441874eff947dfaeacc56c02635

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb11d7db1ea3bf9ca624c91155625faaf78cf2c8141e3ae72c8f3c2ab79e9856
MD5 9af68209b767a0a2a39d60aa72234a80
BLAKE2b-256 b2920ec700e1a09d439d47e042d92b777eebcf702b397981f766773fea69e0af

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 13262b784b7b3e45db81b0339ae59d9df18c87aabe64c8fa03bdea83932d1e00
MD5 c1b9ba1cb52849deeff051ea1c1ece1b
BLAKE2b-256 3e526416afcf56fbbf57515e8e50d6775d695e5666ce4395a44aed5bba280084

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp312-cp312-macosx_10_14_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7feabe96917ecf703264c219eabbabe3313ee6d0fce8eec0a5a8210a018e2100
MD5 7012609c644c37185c82f60e2f28af67
BLAKE2b-256 866fb626137653d98e75eee13332ee173d9d2da2841f2406e3cc96ad2a3dc4af

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aaa44d03f5e8d8c26c16218d762c6d8cab99194fe58be6fdfeaba51f3df3f4e0
MD5 89d49a9e089defff0036f7ada58f001d
BLAKE2b-256 5b5db1c9e4e5fc859c4ccf9a12ac0e81a3647f05e6379d76e43944f119e49f47

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9f92e5d2c6c4deb9bbd9b4d191d1c80f2f2885ddbcdd1a8e58a26f8dde211a82
MD5 73d6405e860e79d8629b449eba01a681
BLAKE2b-256 23f7017414233bf23d1c6a3fa5ff7dad3718a65da3ed1fc4b2e18f860dcf6165

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e3bff217ee97bab041e6bb66322770126ac4a6ed61dab7dde2d0e902a75b164
MD5 0feb43f9a9107df93774df2714aedc35
BLAKE2b-256 3e3c6cca9ac78678c2ee000104727a0016bc1bec87a7e705b9b6db670e67df18

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 41c5eaa1eba1d810570e4420d5929a81d0b5f101d139317fed768e16a8c9f972
MD5 f242306ef0409d0599ac8a508d0c436c
BLAKE2b-256 fb975b4eb951fd1bb2d834b4bac5b245121522f11e32ec5ee4d55efbb260497f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp311-cp311-macosx_10_14_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1ed236f47c7206ca7214167492ab043839ce839e08a8e20cba530d32ed5d2fa0
MD5 69eb791bb2a95eb0aa56d2cb6de1237d
BLAKE2b-256 ad127cbff870cb7afc0c3d1cbf17f02b1b5a179d902545612e3d8f0d9d1c5fef

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e674b8dff83ec799fc08dced00704597852f14c532225ff88b7538eedb92880c
MD5 c16730e3cd4f39ec908dc70804ea0c71
BLAKE2b-256 638979ad79f967a4d36df710378f2f714405b83c369f36790d71cb03d0f5d102

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopencl-2025.2.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5d0a0a5b7c03874449da60c3be69f6a29d9a726522196b6159e0836deb6f883f
MD5 90a9bd0f5f8d30b14604d5f1cc81213b
BLAKE2b-256 e2d36342a537d37931c89103ae5197a1d75591e5302b20bd887bdd2f5d03a08b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84dcabb8317826a9113cab199e66635c4d2cd68e919f43b11096927402ac4fb2
MD5 a8ba1916b5ba0befb3b64db72a980703
BLAKE2b-256 a8c8e7ccbcc4e21088995da16934be295bec56ab60ae2c72b2267c232b8d9efb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pyopencl-2025.2.5-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4340080d388f7d25bc50934ae9548648aa672916516e6cdf4f15e2e73571e45b
MD5 aa0ab373dd6fa4f5b1c64e7f6257b3cc
BLAKE2b-256 b1341d4f0c6b6ce3cae3aafa25cb7b833c829d8b50f6f3a1ddce72f9e61250ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopencl-2025.2.5-cp310-cp310-macosx_10_14_x86_64.whl:

Publisher: wheels.yml on inducer/pyopencl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page