pyopencl-2026.1.2
2026.1.2
2026.1.1
2026.1
2025.2.7
2025.2.6
2025.2.5
2025.2.4
2025.2.3
2025.2.2
2025.2.1
2025.1
2024.3
2024.2.7
2024.2.6
2024.2.5
2024.2.4
2024.2.2
2024.2.1
2024.2
2024.1
2023.1.4
2023.1.3
2023.1.2
2023.1.1
2023.1
2022.3.1
2022.3
2022.2.4
2022.2.3
2022.2.2
2022.2.1
2022.2
2022.1.6
2022.1.5
2022.1.4
2022.1.3
2022.1
2021.2.9
2021.2.8
2021.2.7
2021.2.6
2021.2.5
2021.2.4
2021.2.3
2021.2.2
2021.2.13
2021.2.12
2021.2.11
2021.2.10
2021.2.1
2021.2
2021.1.6
2021.1.5
2021.1.4
2021.1.3
2021.1.2
2021.1.1
2021.1
2020.3.1
2020.2.2
2020.2.1
2020.1
2019.1.2
2019.1.1
2019.1
2018.2.5
2018.2.4
2026.1.2
2026.1.1
2026.1
2025.2.7
2025.2.6
2025.2.5
2025.2.4
2025.2.3
2025.2.2
2025.2.1
2025.1
2024.3
2024.2.7
2024.2.6
2024.2.5
2024.2.4
2024.2.2
2024.2.1
2024.2
2024.1
2023.1.4
2023.1.3
2023.1.2
2023.1.1
2023.1
2022.3.1
2022.3
2022.2.4
2022.2.3
2022.2.2
2022.2.1
2022.2
2022.1.6
2022.1.5
2022.1.4
2022.1.3
2022.1.2
2022.1.1
2022.1
2021.2.9
2021.2.8
2021.2.7
2021.2.6
2021.2.5
2021.2.4
2021.2.3
2021.2.2
2021.2.13
2021.2.12
2021.2.11
2021.2.10
2021.2.1
2021.2
2021.1.6
2021.1.5
2021.1.4
2021.1.3
2021.1.2
2021.1.1
2021.1
2020.3.1
2020.3
2020.2.2
2020.2.1
2020.2
2020.1
2019.1.2
2019.1.1
2019.1
2018.2.5
2018.2.3
2018.2.2
2018.2.1
2018.2
2018.1.1
2018.1
2017.2.2
2017.2.1
2017.2
2017.1.1
2017.1
2016.2.1
2016.2
2016.1
2015.2.4
2015.2.3
2015.2.2
2015.2.1
2015.2
2015.1
2014.1
2013.2
2013.1
2012.1
2011.2
2011.1beta3
2011.1beta2
2011.1beta
2011.1.2
2011.1.1
2011.1
0.92
0.91.5
0.91.4
0.91.3
0.91.2
0.91.1
0.91
0.90.4
0.90.3
0.90.2
0.90.1
0.90
توضیحات
Python wrapper for OpenCL
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | pyopencl-2026.1.2 |
| نام | pyopencl |
| نسخه کتابخانه | 2026.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Andreas Kloeckner <inform@tiker.net> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/pyopencl/ |
| مجوز | - |
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/actions/workflows/ci.yml/badge.svg
:alt: Github Build Status
:target: https://github.com/inducer/pyopencl/actions/workflows/ci.yml
.. |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>`__:
* Object cleanup tied to lifetime of objects. This idiom, often
called `RAII <https://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization>`__
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 <https://documen.tician.de/pyopencl>`__
as well as a `Wiki <https://wiki.tiker.net/PyOpenCL>`__.
* Liberal license. PyOpenCL is open-source under the
`MIT license <https://en.wikipedia.org/wiki/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 <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:
* g++/clang new enough to be compatible with nanobind (specifically, full support of C++17 is needed)
* `numpy <https://numpy.org>`__, and
* an OpenCL implementation. (See this `howto <https://wiki.tiker.net/OpenCLHowTo>`__
for how to get one.)
Links
-----
* `Documentation <https://documen.tician.de/pyopencl>`__
(read how things work)
* `Python package index <https://pypi.python.org/pypi/pyopencl>`__
(download releases, including binary wheels for Linux, macOS, Windows)
* `Conda Forge <https://anaconda.org/conda-forge/pyopencl>`__
(download binary packages for Linux, macOS, Windows)
* `Github <https://github.com/inducer/pyopencl>`__
(get latest source code, file bugs)
نیازمندی
| مقدار | نام |
|---|---|
| ython_versio | importlib-resources; |
| - | numpy |
| - | platformdirs>=2.2 |
| - | pytools>=2025.1.6 |
| - | typing_extensions>=4.6 |
| xtr | oclgrind-binary-distribution>=18.3; |
| xtr | pocl-binary-distribution>=1.2; |
| xtr | basedpyright; |
| xtr | mako; |
| xtr | pytest>=7; |
| xtr | ruff; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| ~=3.10 | Python |
نحوه نصب
نصب پکیج whl pyopencl-2026.1.2:
pip install pyopencl-2026.1.2.whl
نصب پکیج tar.gz pyopencl-2026.1.2:
pip install pyopencl-2026.1.2.tar.gz