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:

  • 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.)

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-2023.1.4.tar.gz (473.9 kB view hashes)

Uploaded Source

Built Distributions

pyopencl-2023.1.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (915.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (878.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (915.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (879.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (905.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (869.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-cp312-cp312-win_amd64.whl (563.5 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pyopencl-2023.1.4-cp312-cp312-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

pyopencl-2023.1.4-cp312-cp312-musllinux_1_1_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

pyopencl-2023.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (941.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (907.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-cp312-cp312-macosx_11_0_arm64.whl (619.3 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pyopencl-2023.1.4-cp312-cp312-macosx_10_9_x86_64.whl (655.9 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

pyopencl-2023.1.4-cp311-cp311-win_amd64.whl (562.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyopencl-2023.1.4-cp311-cp311-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

pyopencl-2023.1.4-cp311-cp311-musllinux_1_1_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

pyopencl-2023.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (944.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (906.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-cp311-cp311-macosx_11_0_arm64.whl (617.3 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pyopencl-2023.1.4-cp311-cp311-macosx_10_9_x86_64.whl (646.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyopencl-2023.1.4-cp310-cp310-win_amd64.whl (561.4 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyopencl-2023.1.4-cp310-cp310-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pyopencl-2023.1.4-cp310-cp310-musllinux_1_1_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

pyopencl-2023.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (941.9 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (902.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-cp310-cp310-macosx_11_0_arm64.whl (615.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pyopencl-2023.1.4-cp310-cp310-macosx_10_9_x86_64.whl (645.4 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyopencl-2023.1.4-cp39-cp39-win_amd64.whl (544.5 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyopencl-2023.1.4-cp39-cp39-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pyopencl-2023.1.4-cp39-cp39-musllinux_1_1_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

pyopencl-2023.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (942.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (904.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-cp39-cp39-macosx_11_0_arm64.whl (616.0 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pyopencl-2023.1.4-cp39-cp39-macosx_10_9_x86_64.whl (645.5 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyopencl-2023.1.4-cp38-cp38-win_amd64.whl (561.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyopencl-2023.1.4-cp38-cp38-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

pyopencl-2023.1.4-cp38-cp38-musllinux_1_1_i686.whl (1.5 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

pyopencl-2023.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (941.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyopencl-2023.1.4-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (902.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

pyopencl-2023.1.4-cp38-cp38-macosx_11_0_arm64.whl (615.6 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pyopencl-2023.1.4-cp38-cp38-macosx_10_9_x86_64.whl (645.3 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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