pyopencl 2024.3__cp38-cp38-musllinux_1_2_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyopencl might be problematic. Click here for more details.

Files changed (43) hide show
  1. pyopencl/.libs/libOpenCL-1ef0e16e.so.1.0.0 +0 -0
  2. pyopencl/__init__.py +2410 -0
  3. pyopencl/_cl.cpython-38-x86_64-linux-gnu.so +0 -0
  4. pyopencl/_cluda.py +54 -0
  5. pyopencl/_mymako.py +14 -0
  6. pyopencl/algorithm.py +1449 -0
  7. pyopencl/array.py +3437 -0
  8. pyopencl/bitonic_sort.py +242 -0
  9. pyopencl/bitonic_sort_templates.py +594 -0
  10. pyopencl/cache.py +535 -0
  11. pyopencl/capture_call.py +177 -0
  12. pyopencl/characterize/__init__.py +456 -0
  13. pyopencl/characterize/performance.py +237 -0
  14. pyopencl/cl/pyopencl-airy.cl +324 -0
  15. pyopencl/cl/pyopencl-bessel-j-complex.cl +238 -0
  16. pyopencl/cl/pyopencl-bessel-j.cl +1084 -0
  17. pyopencl/cl/pyopencl-bessel-y.cl +435 -0
  18. pyopencl/cl/pyopencl-complex.h +303 -0
  19. pyopencl/cl/pyopencl-eval-tbl.cl +120 -0
  20. pyopencl/cl/pyopencl-hankel-complex.cl +444 -0
  21. pyopencl/cl/pyopencl-random123/array.h +325 -0
  22. pyopencl/cl/pyopencl-random123/openclfeatures.h +93 -0
  23. pyopencl/cl/pyopencl-random123/philox.cl +486 -0
  24. pyopencl/cl/pyopencl-random123/threefry.cl +864 -0
  25. pyopencl/clmath.py +280 -0
  26. pyopencl/clrandom.py +409 -0
  27. pyopencl/cltypes.py +137 -0
  28. pyopencl/compyte/.gitignore +21 -0
  29. pyopencl/compyte/__init__.py +0 -0
  30. pyopencl/compyte/array.py +214 -0
  31. pyopencl/compyte/dtypes.py +290 -0
  32. pyopencl/compyte/pyproject.toml +54 -0
  33. pyopencl/elementwise.py +1171 -0
  34. pyopencl/invoker.py +421 -0
  35. pyopencl/ipython_ext.py +68 -0
  36. pyopencl/reduction.py +786 -0
  37. pyopencl/scan.py +1915 -0
  38. pyopencl/tools.py +1527 -0
  39. pyopencl/version.py +9 -0
  40. pyopencl-2024.3.dist-info/METADATA +108 -0
  41. pyopencl-2024.3.dist-info/RECORD +43 -0
  42. pyopencl-2024.3.dist-info/WHEEL +5 -0
  43. pyopencl-2024.3.dist-info/licenses/LICENSE +104 -0
pyopencl/version.py ADDED
@@ -0,0 +1,9 @@
1
+ import re
2
+ from importlib import metadata
3
+
4
+
5
+ VERSION_TEXT = metadata.version("pyopencl")
6
+ _match = re.match("^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT)
7
+ assert _match is not None
8
+ VERSION_STATUS = _match.group(2)
9
+ VERSION = tuple(int(nr) for nr in _match.group(1).split("."))
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyopencl
3
+ Version: 2024.3
4
+ Summary: Python wrapper for OpenCL
5
+ Author-Email: Andreas Kloeckner <inform@tiker.net>
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)
@@ -0,0 +1,43 @@
1
+ pyopencl-2024.3.dist-info/RECORD,,
2
+ pyopencl-2024.3.dist-info/METADATA,sha256=3Y2AW8BahKcnAPNcX0jR65xiQPsUluv8sTbrVsCtZZc,4783
3
+ pyopencl-2024.3.dist-info/WHEEL,sha256=D4nzK0nLfS-aVToU8Hy8FtGu9pKAdqH_GOgR4fiiVsE,115
4
+ pyopencl-2024.3.dist-info/licenses/LICENSE,sha256=ed06wscfYbymGrF5jRUX9rPCsefHp5ZOv_xgjbXgGrA,5299
5
+ pyopencl/ipython_ext.py,sha256=TUgxJa_w7tvXaKj6kPjiXNEKlxrwsJScQCD0khAA1kk,1915
6
+ pyopencl/array.py,sha256=tw-OcXsRyStFcpLEjq64aiuX9rvlcMzu4qtshyJOWY4,111773
7
+ pyopencl/scan.py,sha256=Z4Ew6NE0VRNhxPItM4M8oCtPdif0yCclW-CcsFqScu0,65638
8
+ pyopencl/elementwise.py,sha256=HxSSpC944TeJkok8LGeNjqRgfKucbjpLEw3IoGOqLGc,38625
9
+ pyopencl/capture_call.py,sha256=B2d4SkPrj4f8j5jLDmKHSmSLxK0k9646gKL2FYZkejQ,5694
10
+ pyopencl/cltypes.py,sha256=DdBVPBU2bRuIbT8ImhWFIQosrefMOkAa4mY4yoSnurc,4818
11
+ pyopencl/bitonic_sort.py,sha256=cHd7PHX0arDGJbhaB7AJVI9THVJE69lGuGiB08zeZJ0,8021
12
+ pyopencl/clmath.py,sha256=lOxQzE6BEp5-nVRuGu0hgxzk_gcx7aTiy_hRFxAPmcI,8222
13
+ pyopencl/version.py,sha256=PhHAIjtUGVQ2wTVlqgoOrcC_2rkvNMmqvy1rRDqWOhg,267
14
+ pyopencl/clrandom.py,sha256=BciZJkcKaNzmqP8tfGdb5SPI4qMACSUtLbQTJaOT5kE,13044
15
+ pyopencl/tools.py,sha256=eZdKtkwY34kPbMR9FuFAmQbDQG8vJdv1az_UPiGNxjE,45940
16
+ pyopencl/bitonic_sort_templates.py,sha256=x2hJaR-9AO74C_X7bVTTSxQxGqoDrF2-nQxzmMCSCXs,16151
17
+ pyopencl/algorithm.py,sha256=8qqD_GqvuQguSCDWcrJCeA05xFMj8mpJH1y5O0tUqmM,51293
18
+ pyopencl/invoker.py,sha256=hL5qMYOJpXEh2X1xbkkDaoYWRXgP-9fISY0N5VtL--8,14060
19
+ pyopencl/_mymako.py,sha256=WzmwJ-9EyenDo6RNOcXZmVum886PsmPS2gLNmUBORsA,620
20
+ pyopencl/_cl.cpython-38-x86_64-linux-gnu.so,sha256=v5uiS0ucboZLBxfAm8qKvUeQsLX0GzdD_xgvQ1VYeqs,2713385
21
+ pyopencl/__init__.py,sha256=BDkk5adIO4tHSYxxx_O7W4cyTHALwJB1aPpX5BrKep8,81443
22
+ pyopencl/_cluda.py,sha256=KKUxizD1iQEuZ_TmmFZNJ8IdXa8x8uT9HgB0nmAlYLw,2074
23
+ pyopencl/reduction.py,sha256=CrWJPDYNy4hxtCGgwq2fkWAQXjJ8zMLxV5CEbAh3Wb8,25533
24
+ pyopencl/cache.py,sha256=EbTTIxXmrdcgjzqWQl7O_1EG1RqniHg5sjJQS_5LXIs,16000
25
+ pyopencl/.libs/libOpenCL-1ef0e16e.so.1.0.0,sha256=kJi2f80Ihm_qKQuOZdK0MRJvlKCbPsRMUjnhhsjfpLQ,610825
26
+ pyopencl/cl/pyopencl-bessel-j-complex.cl,sha256=o-17yK_wBFqRiGgTYHg9waooTEKt1SCoguMUbg2LOB0,6026
27
+ pyopencl/cl/pyopencl-bessel-j.cl,sha256=69d5WoqajYSubLgA6OVwYw0yOHGt64zY97J8isnsQgU,23274
28
+ pyopencl/cl/pyopencl-hankel-complex.cl,sha256=JSm38L6cOdnDssVqzKCNgjMrILT5ExkYAxz7i8rQBtA,31561
29
+ pyopencl/cl/pyopencl-bessel-y.cl,sha256=VDy8l4lVxO8VcJR_maeGu_Qjnw27j28zBwhaTKDhBBg,12297
30
+ pyopencl/cl/pyopencl-complex.h,sha256=gy7Ge9tuDeLYdpM8KIvKK347AxK5XPFhlVjJfgPtIlI,8544
31
+ pyopencl/cl/pyopencl-eval-tbl.cl,sha256=YNi_hyeE4GtDwzx3mLOMRIHh9jOOzMwSv-F2F1lMevg,2616
32
+ pyopencl/cl/pyopencl-airy.cl,sha256=S6S84BX6v6E9ZuGB7mdbFygUY99BaManrWMf47Ms7NA,8122
33
+ pyopencl/cl/pyopencl-random123/philox.cl,sha256=vYcQH7Vw13Q3qkW5Nhy1HTUDbWLGKoloE1YP0VWk6vU,21740
34
+ pyopencl/cl/pyopencl-random123/array.h,sha256=nIV0zDWYuybldNgtsh79icNtDXHYdDsSpFaWIvDTyw4,17088
35
+ pyopencl/cl/pyopencl-random123/openclfeatures.h,sha256=pAPbl7JkQgJxulSuGGevpaI43P7PwiH2mYxtNfHq59M,2881
36
+ pyopencl/cl/pyopencl-random123/threefry.cl,sha256=2WmQGxx5gPSv22UL9_MlXv0eMug91k3bC-5_yQ4wlnI,54699
37
+ pyopencl/compyte/pyproject.toml,sha256=wFWDwx-uZHS1OR-em5Rzdfw2w3Ve4Y1IMO3Edg_dgB4,1218
38
+ pyopencl/compyte/array.py,sha256=9dUSCSb475naOADXWhgpQb72Yx1FjKWMEaU6jRwdq90,7422
39
+ pyopencl/compyte/.gitignore,sha256=HVYtbKRtOCPWZavrgYqO2u7UKFiE7g7ympmuQzKbBBw,168
40
+ pyopencl/compyte/dtypes.py,sha256=OceW5dP7F0FGPUe4UgFBLX2mnUWFqAGc1vH-xhe6bNg,9843
41
+ pyopencl/compyte/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
+ pyopencl/characterize/performance.py,sha256=TD8-cNnGnn46sQwfR5xNF2nr8yQcrmhuzJaYB13pSqk,6866
43
+ pyopencl/characterize/__init__.py,sha256=MM56Q4P2IH-piykKeenHgsXYnAcB2HiTj0ftnYVYNVc,14346
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 0.10.7
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-cp38-musllinux_1_2_x86_64
5
+
@@ -0,0 +1,104 @@
1
+ PyOpenCL is licensed to you under the MIT/X Consortium license:
2
+
3
+ Copyright (c) 2009-13 Andreas Klöckner and Contributors.
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the "Software"), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ PyOpenCL includes derivatives of parts of the `Thrust
27
+ <https://github.com/NVIDIA/thrust>`_ computing package (in particular the scan
28
+ implementation). These parts are licensed as follows:
29
+
30
+ Copyright 2008-2011 NVIDIA Corporation
31
+
32
+ Licensed under the Apache License, Version 2.0 (the "License");
33
+ you may not use this file except in compliance with the License.
34
+ You may obtain a copy of the License at
35
+
36
+ <https://www.apache.org/licenses/LICENSE-2.0>
37
+
38
+ Unless required by applicable law or agreed to in writing, software
39
+ distributed under the License is distributed on an "AS IS" BASIS,
40
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41
+ See the License for the specific language governing permissions and
42
+ limitations under the License.
43
+
44
+ .. note::
45
+
46
+ If you use Apache-licensed parts, be aware that these may be incompatible
47
+ with software licensed exclusively under GPL2. (Most software is licensed
48
+ as GPL2 or later, in which case this is not an issue.)
49
+
50
+ PyOpenCL includes parts of the Random123 suite of random number generators:
51
+
52
+ Copyright 2010-2012, D. E. Shaw Research.
53
+ All rights reserved.
54
+
55
+ Redistribution and use in source and binary forms, with or without
56
+ modification, are permitted provided that the following conditions are
57
+ met:
58
+
59
+ * Redistributions of source code must retain the above copyright
60
+ notice, this list of conditions, and the following disclaimer.
61
+
62
+ * Redistributions in binary form must reproduce the above copyright
63
+ notice, this list of conditions, and the following disclaimer in the
64
+ documentation and/or other materials provided with the distribution.
65
+
66
+ * Neither the name of D. E. Shaw Research nor the names of its
67
+ contributors may be used to endorse or promote products derived from
68
+ this software without specific prior written permission.
69
+
70
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
71
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
72
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
73
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
74
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
75
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
76
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
77
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
78
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
79
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
80
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
81
+ PyOpenCL wheel includes ocl-icd which is licensed as below
82
+ Copyright (c) 2012-2020, Brice Videau <bvideau@anl.gov>
83
+ Copyright (c) 2012-2020, Vincent Danjean <Vincent.Danjean@ens-lyon.org>
84
+ All rights reserved.
85
+
86
+ Redistribution and use in source and binary forms, with or without
87
+ modification, are permitted provided that the following conditions are met:
88
+
89
+ 1. Redistributions of source code must retain the above copyright notice, this
90
+ list of conditions and the following disclaimer.
91
+ 2. Redistributions in binary form must reproduce the above copyright notice,
92
+ this list of conditions and the following disclaimer in the documentation
93
+ and/or other materials provided with the distribution.
94
+
95
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
96
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
97
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
98
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
99
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
100
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
101
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
102
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
103
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
104
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.