Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.1
2 Name: pyopencl
3 Version: 2025.1
4 Summary: Python wrapper for OpenCL
5 Author-Email: Andreas Kloeckner <[email protected]>
6 Classifier: Development Status :: 5 - Production/Stable
7 Classifier: Environment :: Console
8 Classifier: Intended Audience :: Developers
9 Classifier: Intended Audience :: Other Audience
10 Classifier: Intended Audience :: Science/Research
11 Classifier: License :: OSI Approved :: MIT License
12 Classifier: Natural Language :: English
13 Classifier: Programming Language :: C++
14 Classifier: Programming Language :: Python
15 Classifier: Programming Language :: Python :: 3 :: Only
16 Classifier: Topic :: Scientific/Engineering
17 Classifier: Topic :: Scientific/Engineering :: Mathematics
18 Classifier: Topic :: Scientific/Engineering :: Physics
19 Project-URL: Documentation, https://documen.tician.de/pyopencl
20 Project-URL: Homepage, https://mathema.tician.de/software/pyopencl
21 Project-URL: Repository, https://github.com/inducer/pyopencl
22 Requires-Python: ~=3.8
23 Requires-Dist: importlib-resources; python_version < "3.9"
24 Requires-Dist: numpy
25 Requires-Dist: platformdirs>=2.2
26 Requires-Dist: pytools>=2024.1.5
27 Requires-Dist: oclgrind-binary-distribution>=18.3; extra == "oclgrind"
28 Requires-Dist: pocl-binary-distribution>=1.2; extra == "pocl"
29 Requires-Dist: ruff; extra == "test"
30 Requires-Dist: mako; extra == "test"
31 Requires-Dist: mypy; extra == "test"
32 Requires-Dist: pylint; extra == "test"
33 Requires-Dist: pytest>=7; extra == "test"
34 Provides-Extra: oclgrind
35 Provides-Extra: pocl
36 Provides-Extra: test
37 Description-Content-Type: text/x-rst
38
39 PyOpenCL: Pythonic Access to OpenCL, with Arrays and Algorithms
40 ===============================================================
41
42 .. |badge-gitlab-ci| image:: https://gitlab.tiker.net/inducer/pyopencl/badges/main/pipeline.svg
43 :alt: Gitlab Build Status
44 :target: https://gitlab.tiker.net/inducer/pyopencl/commits/main
45 .. |badge-github-ci| image:: https://github.com/inducer/pyopencl/workflows/CI/badge.svg?branch=main&event=push
46 :alt: Github Build Status
47 :target: https://github.com/inducer/pyopencl/actions?query=branch%3Amain+workflow%3ACI+event%3Apush
48 .. |badge-pypi| image:: https://badge.fury.io/py/pyopencl.svg
49 :alt: Python Package Index Release Page
50 :target: https://pypi.org/project/pyopencl/
51 .. |badge-zenodo| image:: https://zenodo.org/badge/1575307.svg
52 :alt: Zenodo DOI for latest release
53 :target: https://zenodo.org/badge/latestdoi/1575307
54
55 |badge-gitlab-ci| |badge-github-ci| |badge-pypi| |badge-zenodo|
56
57 PyOpenCL lets you access GPUs and other massively parallel compute
58 devices from Python. It tries to offer computing goodness in the
59 spirit of its sister project `PyCUDA <https://mathema.tician.de/software/pycuda>`__:
60
61 * Object cleanup tied to lifetime of objects. This idiom, often
62 called `RAII <https://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization>`__
63 in C++, makes it much easier to write correct, leak- and
64 crash-free code.
65
66 * Completeness. PyOpenCL puts the full power of OpenCL's API at
67 your disposal, if you wish. Every obscure ``get_info()`` query and
68 all CL calls are accessible.
69
70 * Automatic Error Checking. All CL errors are automatically
71 translated into Python exceptions.
72
73 * Speed. PyOpenCL's base layer is written in C++, so all the niceties
74 above are virtually free.
75
76 * Helpful and complete `Documentation <https://documen.tician.de/pyopencl>`__
77 as well as a `Wiki <https://wiki.tiker.net/PyOpenCL>`__.
78
79 * Liberal license. PyOpenCL is open-source under the
80 `MIT license <https://en.wikipedia.org/wiki/MIT_License>`__
81 and free for commercial, academic, and private use.
82
83 * Broad support. PyOpenCL was tested and works with Apple's, AMD's, and Nvidia's
84 CL implementations.
85
86 Simple 4-step `install instructions <https://documen.tician.de/pyopencl/misc.html#installation>`__
87 using Conda on Linux and macOS (that also install a working OpenCL implementation!)
88 can be found in the `documentation <https://documen.tician.de/pyopencl/>`__.
89
90 What you'll need if you do *not* want to use the convenient instructions above and
91 instead build from source:
92
93 * g++/clang new enough to be compatible with nanobind (specifically, full support of C++17 is needed)
94 * `numpy <https://numpy.org>`__, and
95 * an OpenCL implementation. (See this `howto <https://wiki.tiker.net/OpenCLHowTo>`__
96 for how to get one.)
97
98 Links
99 -----
100
101 * `Documentation <https://documen.tician.de/pyopencl>`__
102 (read how things work)
103 * `Python package index <https://pypi.python.org/pypi/pyopencl>`__
104 (download releases, including binary wheels for Linux, macOS, Windows)
105 * `Conda Forge <https://anaconda.org/conda-forge/pyopencl>`__
106 (download binary packages for Linux, macOS, Windows)
107 * `Github <https://github.com/inducer/pyopencl>`__
108 (get latest source code, file bugs)