pyopencl 2025.2.7__cp314-cp314-macosx_11_0_arm64.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 (46) hide show
  1. pyopencl/__init__.py +1995 -0
  2. pyopencl/_cl.cpython-314-darwin.so +0 -0
  3. pyopencl/_cl.pyi +2009 -0
  4. pyopencl/_cluda.py +57 -0
  5. pyopencl/_monkeypatch.py +1104 -0
  6. pyopencl/_mymako.py +17 -0
  7. pyopencl/algorithm.py +1454 -0
  8. pyopencl/array.py +3530 -0
  9. pyopencl/bitonic_sort.py +245 -0
  10. pyopencl/bitonic_sort_templates.py +597 -0
  11. pyopencl/cache.py +535 -0
  12. pyopencl/capture_call.py +200 -0
  13. pyopencl/characterize/__init__.py +461 -0
  14. pyopencl/characterize/performance.py +240 -0
  15. pyopencl/cl/pyopencl-airy.cl +324 -0
  16. pyopencl/cl/pyopencl-bessel-j-complex.cl +238 -0
  17. pyopencl/cl/pyopencl-bessel-j.cl +1084 -0
  18. pyopencl/cl/pyopencl-bessel-y.cl +435 -0
  19. pyopencl/cl/pyopencl-complex.h +303 -0
  20. pyopencl/cl/pyopencl-eval-tbl.cl +120 -0
  21. pyopencl/cl/pyopencl-hankel-complex.cl +444 -0
  22. pyopencl/cl/pyopencl-random123/array.h +325 -0
  23. pyopencl/cl/pyopencl-random123/openclfeatures.h +93 -0
  24. pyopencl/cl/pyopencl-random123/philox.cl +486 -0
  25. pyopencl/cl/pyopencl-random123/threefry.cl +864 -0
  26. pyopencl/clmath.py +281 -0
  27. pyopencl/clrandom.py +412 -0
  28. pyopencl/cltypes.py +217 -0
  29. pyopencl/compyte/.gitignore +21 -0
  30. pyopencl/compyte/__init__.py +0 -0
  31. pyopencl/compyte/array.py +211 -0
  32. pyopencl/compyte/dtypes.py +314 -0
  33. pyopencl/compyte/pyproject.toml +49 -0
  34. pyopencl/elementwise.py +1288 -0
  35. pyopencl/invoker.py +417 -0
  36. pyopencl/ipython_ext.py +70 -0
  37. pyopencl/py.typed +0 -0
  38. pyopencl/reduction.py +815 -0
  39. pyopencl/scan.py +1921 -0
  40. pyopencl/tools.py +1680 -0
  41. pyopencl/typing.py +61 -0
  42. pyopencl/version.py +11 -0
  43. pyopencl-2025.2.7.dist-info/METADATA +108 -0
  44. pyopencl-2025.2.7.dist-info/RECORD +46 -0
  45. pyopencl-2025.2.7.dist-info/WHEEL +6 -0
  46. pyopencl-2025.2.7.dist-info/licenses/LICENSE +282 -0
pyopencl/typing.py ADDED
@@ -0,0 +1,61 @@
1
+ from __future__ import annotations
2
+
3
+
4
+ __copyright__ = "Copyright (C) 2025 University of Illinois Board of Trustees"
5
+
6
+ __license__ = """
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
24
+ """
25
+
26
+ from collections.abc import Callable, Sequence
27
+ from typing import TYPE_CHECKING, Any, TypeAlias, TypeVar
28
+
29
+ import numpy as np
30
+ from numpy.typing import NDArray
31
+ from typing_extensions import Buffer as abc_Buffer
32
+
33
+
34
+ if TYPE_CHECKING:
35
+ import pyopencl as _cl
36
+ import pyopencl.array as _cl_array
37
+
38
+
39
+ DTypeT = TypeVar("DTypeT", bound=np.dtype[Any])
40
+
41
+ HasBufferInterface: TypeAlias = abc_Buffer | NDArray[Any]
42
+ SVMInnerT = TypeVar("SVMInnerT", bound=HasBufferInterface)
43
+ WaitList: TypeAlias = Sequence["_cl.Event"] | None
44
+ KernelArg: TypeAlias = """
45
+ int
46
+ | float
47
+ | complex
48
+ | HasBufferInterface
49
+ | np.generic
50
+ | _cl.Buffer
51
+ | _cl.Image
52
+ | _cl.Sampler
53
+ | _cl.SVMPointer
54
+ | _cl_array.Array
55
+ | None"""
56
+
57
+ Allocator: TypeAlias = "Callable[[int], _cl.MemoryObjectHolder | _cl.SVMPointer]"
58
+
59
+
60
+ __all__ = [
61
+ ]
pyopencl/version.py ADDED
@@ -0,0 +1,11 @@
1
+ from __future__ import annotations
2
+
3
+ import re
4
+ from importlib import metadata
5
+
6
+
7
+ VERSION_TEXT = metadata.version("pyopencl")
8
+ _match = re.match(r"^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT)
9
+ assert _match is not None
10
+ VERSION_STATUS = _match.group(2)
11
+ VERSION = tuple(int(nr) for nr in _match.group(1).split("."))
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyopencl
3
+ Version: 2025.2.7
4
+ Summary: Python wrapper for OpenCL
5
+ Author-Email: Andreas Kloeckner <inform@tiker.net>
6
+ License-Expression: MIT
7
+ Classifier: Development Status :: 5 - Production/Stable
8
+ Classifier: Environment :: Console
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Other Audience
11
+ Classifier: Intended Audience :: Science/Research
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.10
23
+ Requires-Dist: importlib-resources; python_version < "3.9"
24
+ Requires-Dist: numpy
25
+ Requires-Dist: platformdirs>=2.2
26
+ Requires-Dist: pytools>=2025.1.6
27
+ Requires-Dist: typing_extensions>=4.6
28
+ Provides-Extra: oclgrind
29
+ Requires-Dist: oclgrind-binary-distribution>=18.3; extra == "oclgrind"
30
+ Provides-Extra: pocl
31
+ Requires-Dist: pocl-binary-distribution>=1.2; extra == "pocl"
32
+ Provides-Extra: test
33
+ Requires-Dist: basedpyright; extra == "test"
34
+ Requires-Dist: mako; extra == "test"
35
+ Requires-Dist: pytest>=7; extra == "test"
36
+ Requires-Dist: ruff; 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/actions/workflows/ci.yml/badge.svg
46
+ :alt: Github Build Status
47
+ :target: https://github.com/inducer/pyopencl/actions/workflows/ci.yml
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,46 @@
1
+ pyopencl-2025.2.7.dist-info/RECORD,,
2
+ pyopencl-2025.2.7.dist-info/WHEEL,sha256=1bSoEhplGNQCM6mySRtVr9yWoZ8316lga5ImQCm3ICg,141
3
+ pyopencl-2025.2.7.dist-info/METADATA,sha256=ewTbQ2052noPrpeGZheceiEOTHkRWUMHkgqnv8Q7VVE,4725
4
+ pyopencl-2025.2.7.dist-info/licenses/LICENSE,sha256=wiBvs-UC54bB5DswWuvB66B96b4hkYw_VLt8IR0cBPI,15284
5
+ pyopencl/algorithm.py,sha256=0-zFMZDtj6iiyiedpxKd6JA9bh1zCj89SXYXTrqsnjs,51319
6
+ pyopencl/clmath.py,sha256=p-tN7Bzv1uxYM28odnqiqvO6bd4Sf6DaJBNrlzPJT68,8189
7
+ pyopencl/_cl.cpython-314-darwin.so,sha256=L190q9a-4xFTZGIMU5jMewtFYhuWrP716ccH_EmQoyc,556264
8
+ pyopencl/version.py,sha256=53bqHNFDyobSVMAdQ47kiOx1UdhKXDLkTtzNwfLEvY4,304
9
+ pyopencl/capture_call.py,sha256=c1X3HKwtikqgkSuMSvMNKezYCrAtCc8Wt60cvGfFJTQ,6479
10
+ pyopencl/reduction.py,sha256=2Gf91Rw0mUu61SVSqhYWhReV5Ru28Qw60CXmXLhSDO8,26644
11
+ pyopencl/tools.py,sha256=DMBI5hzl1qJCKpCdqEd6CNWa_rjePLqUA7tLztih_wU,51959
12
+ pyopencl/elementwise.py,sha256=PQfwwCo9BFAfVG8WziqO_40wkhMYEVxGddmbiGjjDDo,43821
13
+ pyopencl/cache.py,sha256=B8uY1YrBZBn8Q37aj0a6NC4yliumXwAsZvmjnWr1LZs,15989
14
+ pyopencl/__init__.py,sha256=70i8Bo6qCxXT61loiSs4MfHBk_MDzgDN9eVMnR8Kab4,63178
15
+ pyopencl/_cl.pyi,sha256=u-PoarxPjueM2-u7wtbCdPRA2QHvSW146r79Ys8aZl4,56329
16
+ pyopencl/cltypes.py,sha256=MXbJ0NqIDTAjG40Fq4l5070THAS1e9AuGGlNGrcv-Os,6706
17
+ pyopencl/invoker.py,sha256=ws1kdpzIkc7vc7s4jxtJ7IcdCa5qOT5DiYW6rMxjVVg,13706
18
+ pyopencl/ipython_ext.py,sha256=_l9y3F2fi-tM7_cIlqY1LyWckYHYfVYBKCI4RNpEpKo,1951
19
+ pyopencl/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ pyopencl/scan.py,sha256=_eg8UjYs0OVTfP909H6fqrlj1Xe4OtSqMWY3ziUPevc,65975
21
+ pyopencl/_cluda.py,sha256=kjI6pW9M-zGCVDsautsKsYMs1U9v73_W5riUjdzmKA0,2111
22
+ pyopencl/_mymako.py,sha256=1xp0pWcE57hpIDKw915CvOGQpC-Jral02Inykx_k198,657
23
+ pyopencl/_monkeypatch.py,sha256=f25Px5nH8ODWs2eLkOtzK9NT5IKNaJ1hx3_hV1Ta8CE,36080
24
+ pyopencl/typing.py,sha256=LN50UCqujen7SE5cforFvJLoEd3KNEKygxuQiZV4YoQ,1986
25
+ pyopencl/array.py,sha256=98xbzixkZzZU4sSUzHyBNfBMVsLLwWyk7Q864feP8_I,114795
26
+ pyopencl/bitonic_sort.py,sha256=FpTfCf_s22O-SgPWBoXZjCG_k1afm7uUwnO9N7jubgg,8052
27
+ pyopencl/bitonic_sort_templates.py,sha256=316nsWdr7jpg9g8SmZk8KCoHmHKabjvOdBaufxQPw8Y,16188
28
+ pyopencl/clrandom.py,sha256=Ox_Eebq5fcjsBXpa68C1kt8Ca6CPi5tXwXhEhLY_yP8,13081
29
+ pyopencl/compyte/pyproject.toml,sha256=yISxFxhotloFnx_Adffvnr0w2samJwGonr64Eq2YDQo,1145
30
+ pyopencl/compyte/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
+ pyopencl/compyte/dtypes.py,sha256=mbpZEVF3l01JTou4-3MeHG_9ptPcLo33kZhU9UZTwL8,10568
32
+ pyopencl/compyte/.gitignore,sha256=HVYtbKRtOCPWZavrgYqO2u7UKFiE7g7ympmuQzKbBBw,168
33
+ pyopencl/compyte/array.py,sha256=7F4TuQ5SzkV4du-R-GQ7cNLFJNhRU-htVqbVbpkKJ2o,7493
34
+ pyopencl/characterize/__init__.py,sha256=1BWTlbHSSM7XSvCalTvpneIW6qKnVwZmn2rfS2VgmVo,14527
35
+ pyopencl/characterize/performance.py,sha256=i8X1jWlyL1bUD7wuDoSlk1CckJkT6zAVPefziQwmNXU,6903
36
+ pyopencl/cl/pyopencl-bessel-y.cl,sha256=VDy8l4lVxO8VcJR_maeGu_Qjnw27j28zBwhaTKDhBBg,12297
37
+ pyopencl/cl/pyopencl-hankel-complex.cl,sha256=JSm38L6cOdnDssVqzKCNgjMrILT5ExkYAxz7i8rQBtA,31561
38
+ pyopencl/cl/pyopencl-bessel-j.cl,sha256=69d5WoqajYSubLgA6OVwYw0yOHGt64zY97J8isnsQgU,23274
39
+ pyopencl/cl/pyopencl-bessel-j-complex.cl,sha256=o-17yK_wBFqRiGgTYHg9waooTEKt1SCoguMUbg2LOB0,6026
40
+ pyopencl/cl/pyopencl-airy.cl,sha256=S6S84BX6v6E9ZuGB7mdbFygUY99BaManrWMf47Ms7NA,8122
41
+ pyopencl/cl/pyopencl-eval-tbl.cl,sha256=YNi_hyeE4GtDwzx3mLOMRIHh9jOOzMwSv-F2F1lMevg,2616
42
+ pyopencl/cl/pyopencl-complex.h,sha256=gy7Ge9tuDeLYdpM8KIvKK347AxK5XPFhlVjJfgPtIlI,8544
43
+ pyopencl/cl/pyopencl-random123/threefry.cl,sha256=2WmQGxx5gPSv22UL9_MlXv0eMug91k3bC-5_yQ4wlnI,54699
44
+ pyopencl/cl/pyopencl-random123/philox.cl,sha256=vYcQH7Vw13Q3qkW5Nhy1HTUDbWLGKoloE1YP0VWk6vU,21740
45
+ pyopencl/cl/pyopencl-random123/array.h,sha256=nIV0zDWYuybldNgtsh79icNtDXHYdDsSpFaWIvDTyw4,17088
46
+ pyopencl/cl/pyopencl-random123/openclfeatures.h,sha256=pAPbl7JkQgJxulSuGGevpaI43P7PwiH2mYxtNfHq59M,2881
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 0.11.6
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-macosx_11_0_arm64
5
+ Generator: delocate 0.13.0
6
+
@@ -0,0 +1,282 @@
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 Khronos Group OpenCL-ICD-Loader which is licensed as below
82
+ Apache License
83
+ Version 2.0, January 2004
84
+ http://www.apache.org/licenses/
85
+
86
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
87
+
88
+ 1. Definitions.
89
+
90
+ "License" shall mean the terms and conditions for use, reproduction,
91
+ and distribution as defined by Sections 1 through 9 of this document.
92
+
93
+ "Licensor" shall mean the copyright owner or entity authorized by
94
+ the copyright owner that is granting the License.
95
+
96
+ "Legal Entity" shall mean the union of the acting entity and all
97
+ other entities that control, are controlled by, or are under common
98
+ control with that entity. For the purposes of this definition,
99
+ "control" means (i) the power, direct or indirect, to cause the
100
+ direction or management of such entity, whether by contract or
101
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
102
+ outstanding shares, or (iii) beneficial ownership of such entity.
103
+
104
+ "You" (or "Your") shall mean an individual or Legal Entity
105
+ exercising permissions granted by this License.
106
+
107
+ "Source" form shall mean the preferred form for making modifications,
108
+ including but not limited to software source code, documentation
109
+ source, and configuration files.
110
+
111
+ "Object" form shall mean any form resulting from mechanical
112
+ transformation or translation of a Source form, including but
113
+ not limited to compiled object code, generated documentation,
114
+ and conversions to other media types.
115
+
116
+ "Work" shall mean the work of authorship, whether in Source or
117
+ Object form, made available under the License, as indicated by a
118
+ copyright notice that is included in or attached to the work
119
+ (an example is provided in the Appendix below).
120
+
121
+ "Derivative Works" shall mean any work, whether in Source or Object
122
+ form, that is based on (or derived from) the Work and for which the
123
+ editorial revisions, annotations, elaborations, or other modifications
124
+ represent, as a whole, an original work of authorship. For the purposes
125
+ of this License, Derivative Works shall not include works that remain
126
+ separable from, or merely link (or bind by name) to the interfaces of,
127
+ the Work and Derivative Works thereof.
128
+
129
+ "Contribution" shall mean any work of authorship, including
130
+ the original version of the Work and any modifications or additions
131
+ to that Work or Derivative Works thereof, that is intentionally
132
+ submitted to Licensor for inclusion in the Work by the copyright owner
133
+ or by an individual or Legal Entity authorized to submit on behalf of
134
+ the copyright owner. For the purposes of this definition, "submitted"
135
+ means any form of electronic, verbal, or written communication sent
136
+ to the Licensor or its representatives, including but not limited to
137
+ communication on electronic mailing lists, source code control systems,
138
+ and issue tracking systems that are managed by, or on behalf of, the
139
+ Licensor for the purpose of discussing and improving the Work, but
140
+ excluding communication that is conspicuously marked or otherwise
141
+ designated in writing by the copyright owner as "Not a Contribution."
142
+
143
+ "Contributor" shall mean Licensor and any individual or Legal Entity
144
+ on behalf of whom a Contribution has been received by Licensor and
145
+ subsequently incorporated within the Work.
146
+
147
+ 2. Grant of Copyright License. Subject to the terms and conditions of
148
+ this License, each Contributor hereby grants to You a perpetual,
149
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
150
+ copyright license to reproduce, prepare Derivative Works of,
151
+ publicly display, publicly perform, sublicense, and distribute the
152
+ Work and such Derivative Works in Source or Object form.
153
+
154
+ 3. Grant of Patent License. Subject to the terms and conditions of
155
+ this License, each Contributor hereby grants to You a perpetual,
156
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
157
+ (except as stated in this section) patent license to make, have made,
158
+ use, offer to sell, sell, import, and otherwise transfer the Work,
159
+ where such license applies only to those patent claims licensable
160
+ by such Contributor that are necessarily infringed by their
161
+ Contribution(s) alone or by combination of their Contribution(s)
162
+ with the Work to which such Contribution(s) was submitted. If You
163
+ institute patent litigation against any entity (including a
164
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
165
+ or a Contribution incorporated within the Work constitutes direct
166
+ or contributory patent infringement, then any patent licenses
167
+ granted to You under this License for that Work shall terminate
168
+ as of the date such litigation is filed.
169
+
170
+ 4. Redistribution. You may reproduce and distribute copies of the
171
+ Work or Derivative Works thereof in any medium, with or without
172
+ modifications, and in Source or Object form, provided that You
173
+ meet the following conditions:
174
+
175
+ (a) You must give any other recipients of the Work or
176
+ Derivative Works a copy of this License; and
177
+
178
+ (b) You must cause any modified files to carry prominent notices
179
+ stating that You changed the files; and
180
+
181
+ (c) You must retain, in the Source form of any Derivative Works
182
+ that You distribute, all copyright, patent, trademark, and
183
+ attribution notices from the Source form of the Work,
184
+ excluding those notices that do not pertain to any part of
185
+ the Derivative Works; and
186
+
187
+ (d) If the Work includes a "NOTICE" text file as part of its
188
+ distribution, then any Derivative Works that You distribute must
189
+ include a readable copy of the attribution notices contained
190
+ within such NOTICE file, excluding those notices that do not
191
+ pertain to any part of the Derivative Works, in at least one
192
+ of the following places: within a NOTICE text file distributed
193
+ as part of the Derivative Works; within the Source form or
194
+ documentation, if provided along with the Derivative Works; or,
195
+ within a display generated by the Derivative Works, if and
196
+ wherever such third-party notices normally appear. The contents
197
+ of the NOTICE file are for informational purposes only and
198
+ do not modify the License. You may add Your own attribution
199
+ notices within Derivative Works that You distribute, alongside
200
+ or as an addendum to the NOTICE text from the Work, provided
201
+ that such additional attribution notices cannot be construed
202
+ as modifying the License.
203
+
204
+ You may add Your own copyright statement to Your modifications and
205
+ may provide additional or different license terms and conditions
206
+ for use, reproduction, or distribution of Your modifications, or
207
+ for any such Derivative Works as a whole, provided Your use,
208
+ reproduction, and distribution of the Work otherwise complies with
209
+ the conditions stated in this License.
210
+
211
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
212
+ any Contribution intentionally submitted for inclusion in the Work
213
+ by You to the Licensor shall be under the terms and conditions of
214
+ this License, without any additional terms or conditions.
215
+ Notwithstanding the above, nothing herein shall supersede or modify
216
+ the terms of any separate license agreement you may have executed
217
+ with Licensor regarding such Contributions.
218
+
219
+ 6. Trademarks. This License does not grant permission to use the trade
220
+ names, trademarks, service marks, or product names of the Licensor,
221
+ except as required for reasonable and customary use in describing the
222
+ origin of the Work and reproducing the content of the NOTICE file.
223
+
224
+ 7. Disclaimer of Warranty. Unless required by applicable law or
225
+ agreed to in writing, Licensor provides the Work (and each
226
+ Contributor provides its Contributions) on an "AS IS" BASIS,
227
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
228
+ implied, including, without limitation, any warranties or conditions
229
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
230
+ PARTICULAR PURPOSE. You are solely responsible for determining the
231
+ appropriateness of using or redistributing the Work and assume any
232
+ risks associated with Your exercise of permissions under this License.
233
+
234
+ 8. Limitation of Liability. In no event and under no legal theory,
235
+ whether in tort (including negligence), contract, or otherwise,
236
+ unless required by applicable law (such as deliberate and grossly
237
+ negligent acts) or agreed to in writing, shall any Contributor be
238
+ liable to You for damages, including any direct, indirect, special,
239
+ incidental, or consequential damages of any character arising as a
240
+ result of this License or out of the use or inability to use the
241
+ Work (including but not limited to damages for loss of goodwill,
242
+ work stoppage, computer failure or malfunction, or any and all
243
+ other commercial damages or losses), even if such Contributor
244
+ has been advised of the possibility of such damages.
245
+
246
+ 9. Accepting Warranty or Additional Liability. While redistributing
247
+ the Work or Derivative Works thereof, You may choose to offer,
248
+ and charge a fee for, acceptance of support, warranty, indemnity,
249
+ or other liability obligations and/or rights consistent with this
250
+ License. However, in accepting such obligations, You may act only
251
+ on Your own behalf and on Your sole responsibility, not on behalf
252
+ of any other Contributor, and only if You agree to indemnify,
253
+ defend, and hold each Contributor harmless for any liability
254
+ incurred by, or claims asserted against, such Contributor by reason
255
+ of your accepting any such warranty or additional liability.
256
+
257
+ END OF TERMS AND CONDITIONS
258
+
259
+ APPENDIX: How to apply the Apache License to your work.
260
+
261
+ To apply the Apache License to your work, attach the following
262
+ boilerplate notice, with the fields enclosed by brackets "[]"
263
+ replaced with your own identifying information. (Don't include
264
+ the brackets!) The text should be enclosed in the appropriate
265
+ comment syntax for the file format. We also recommend that a
266
+ file or class name and description of purpose be included on the
267
+ same "printed page" as the copyright notice for easier
268
+ identification within third-party archives.
269
+
270
+ Copyright [yyyy] [name of copyright owner]
271
+
272
+ Licensed under the Apache License, Version 2.0 (the "License");
273
+ you may not use this file except in compliance with the License.
274
+ You may obtain a copy of the License at
275
+
276
+ http://www.apache.org/licenses/LICENSE-2.0
277
+
278
+ Unless required by applicable law or agreed to in writing, software
279
+ distributed under the License is distributed on an "AS IS" BASIS,
280
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
281
+ See the License for the specific language governing permissions and
282
+ limitations under the License.