inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.04k stars 237 forks source link
amd array cuda gpu heterogeneous-parallel-programming multidimensional-arrays nvidia opencl opengl parallel-algorithm parallel-computing performance prefix-sum pyopencl python reduction scientific-computing shared-memory sorting

PyOpenCL: Pythonic Access to OpenCL, with Arrays and Algorithms

.. |badge-gitlab-ci| image:: https://gitlab.tiker.net/inducer/pyopencl/badges/main/pipeline.svg :alt: Gitlab Build Status :target: https://gitlab.tiker.net/inducer/pyopencl/commits/main .. |badge-github-ci| image:: https://github.com/inducer/pyopencl/workflows/CI/badge.svg?branch=main&event=push :alt: Github Build Status :target: https://github.com/inducer/pyopencl/actions?query=branch%3Amain+workflow%3ACI+event%3Apush .. |badge-pypi| image:: https://badge.fury.io/py/pyopencl.svg :alt: Python Package Index Release Page :target: https://pypi.org/project/pyopencl/ .. |badge-zenodo| image:: https://zenodo.org/badge/1575307.svg :alt: Zenodo DOI for latest release :target: https://zenodo.org/badge/latestdoi/1575307

|badge-gitlab-ci| |badge-github-ci| |badge-pypi| |badge-zenodo|

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 <https://mathema.tician.de/software/pycuda>__:

Simple 4-step install instructions <https://documen.tician.de/pyopencl/misc.html#installation> using Conda on Linux and macOS (that also install a working OpenCL implementation!) can be found in the documentation <https://documen.tician.de/pyopencl/>.

What you'll need if you do not want to use the convenient instructions above and instead build from source:

Links