pyopencl 2026.1.1__cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.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.
- pyopencl/.libs/libOpenCL-34a55fe4.so.1.0.0 +0 -0
- pyopencl/__init__.py +1995 -0
- pyopencl/_cl.cpython-314t-aarch64-linux-gnu.so +0 -0
- pyopencl/_cl.pyi +2009 -0
- pyopencl/_cluda.py +57 -0
- pyopencl/_monkeypatch.py +1104 -0
- pyopencl/_mymako.py +17 -0
- pyopencl/algorithm.py +1454 -0
- pyopencl/array.py +3530 -0
- pyopencl/bitonic_sort.py +245 -0
- pyopencl/bitonic_sort_templates.py +597 -0
- pyopencl/cache.py +553 -0
- pyopencl/capture_call.py +200 -0
- pyopencl/characterize/__init__.py +461 -0
- pyopencl/characterize/performance.py +240 -0
- pyopencl/cl/pyopencl-airy.cl +324 -0
- pyopencl/cl/pyopencl-bessel-j-complex.cl +238 -0
- pyopencl/cl/pyopencl-bessel-j.cl +1084 -0
- pyopencl/cl/pyopencl-bessel-y.cl +435 -0
- pyopencl/cl/pyopencl-complex.h +303 -0
- pyopencl/cl/pyopencl-eval-tbl.cl +120 -0
- pyopencl/cl/pyopencl-hankel-complex.cl +444 -0
- pyopencl/cl/pyopencl-random123/array.h +325 -0
- pyopencl/cl/pyopencl-random123/openclfeatures.h +93 -0
- pyopencl/cl/pyopencl-random123/philox.cl +486 -0
- pyopencl/cl/pyopencl-random123/threefry.cl +864 -0
- pyopencl/clmath.py +281 -0
- pyopencl/clrandom.py +412 -0
- pyopencl/cltypes.py +217 -0
- pyopencl/compyte/.gitignore +21 -0
- pyopencl/compyte/__init__.py +0 -0
- pyopencl/compyte/array.py +211 -0
- pyopencl/compyte/dtypes.py +314 -0
- pyopencl/compyte/pyproject.toml +49 -0
- pyopencl/elementwise.py +1288 -0
- pyopencl/invoker.py +417 -0
- pyopencl/ipython_ext.py +70 -0
- pyopencl/py.typed +0 -0
- pyopencl/reduction.py +829 -0
- pyopencl/scan.py +1921 -0
- pyopencl/tools.py +1680 -0
- pyopencl/typing.py +61 -0
- pyopencl/version.py +11 -0
- pyopencl-2026.1.1.dist-info/METADATA +108 -0
- pyopencl-2026.1.1.dist-info/RECORD +47 -0
- pyopencl-2026.1.1.dist-info/WHEEL +6 -0
- pyopencl-2026.1.1.dist-info/licenses/LICENSE +104 -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: 2026.1.1
|
|
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,47 @@
|
|
|
1
|
+
pyopencl/__init__.py,sha256=70i8Bo6qCxXT61loiSs4MfHBk_MDzgDN9eVMnR8Kab4,63178
|
|
2
|
+
pyopencl/_cl.cpython-314t-aarch64-linux-gnu.so,sha256=4GemSfcXy9mqUmthiYswT4A3EV8mJ9oUvB3h3PmJXOU,927233
|
|
3
|
+
pyopencl/_cl.pyi,sha256=niKru9SBVZRIPYp6vNZ5MJasqdRxWStU5JuDwY4vlG4,56353
|
|
4
|
+
pyopencl/_cluda.py,sha256=kjI6pW9M-zGCVDsautsKsYMs1U9v73_W5riUjdzmKA0,2111
|
|
5
|
+
pyopencl/_monkeypatch.py,sha256=f25Px5nH8ODWs2eLkOtzK9NT5IKNaJ1hx3_hV1Ta8CE,36080
|
|
6
|
+
pyopencl/_mymako.py,sha256=1xp0pWcE57hpIDKw915CvOGQpC-Jral02Inykx_k198,657
|
|
7
|
+
pyopencl/algorithm.py,sha256=0-zFMZDtj6iiyiedpxKd6JA9bh1zCj89SXYXTrqsnjs,51319
|
|
8
|
+
pyopencl/array.py,sha256=0l305p4b-13ip9WTux473K8dAwX7B1_2VOslOyuZVpk,114802
|
|
9
|
+
pyopencl/bitonic_sort.py,sha256=FpTfCf_s22O-SgPWBoXZjCG_k1afm7uUwnO9N7jubgg,8052
|
|
10
|
+
pyopencl/bitonic_sort_templates.py,sha256=316nsWdr7jpg9g8SmZk8KCoHmHKabjvOdBaufxQPw8Y,16188
|
|
11
|
+
pyopencl/cache.py,sha256=MiXkLOpDbJBoD2HKMUI0TZA0WYfrOYtuPpQiwb8taxc,16546
|
|
12
|
+
pyopencl/capture_call.py,sha256=nPxB6YKEYdM547K6iv8huaeREPOuWEM1igEYQM7dfQ4,6486
|
|
13
|
+
pyopencl/clmath.py,sha256=p-tN7Bzv1uxYM28odnqiqvO6bd4Sf6DaJBNrlzPJT68,8189
|
|
14
|
+
pyopencl/clrandom.py,sha256=Ox_Eebq5fcjsBXpa68C1kt8Ca6CPi5tXwXhEhLY_yP8,13081
|
|
15
|
+
pyopencl/cltypes.py,sha256=MXbJ0NqIDTAjG40Fq4l5070THAS1e9AuGGlNGrcv-Os,6706
|
|
16
|
+
pyopencl/elementwise.py,sha256=PQfwwCo9BFAfVG8WziqO_40wkhMYEVxGddmbiGjjDDo,43821
|
|
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/reduction.py,sha256=v0jiIMREUH8XBjSEW5oh31ZoGcSiy_sWyqpL9PAJkZw,26993
|
|
21
|
+
pyopencl/scan.py,sha256=_eg8UjYs0OVTfP909H6fqrlj1Xe4OtSqMWY3ziUPevc,65975
|
|
22
|
+
pyopencl/tools.py,sha256=DMBI5hzl1qJCKpCdqEd6CNWa_rjePLqUA7tLztih_wU,51959
|
|
23
|
+
pyopencl/typing.py,sha256=LN50UCqujen7SE5cforFvJLoEd3KNEKygxuQiZV4YoQ,1986
|
|
24
|
+
pyopencl/version.py,sha256=53bqHNFDyobSVMAdQ47kiOx1UdhKXDLkTtzNwfLEvY4,304
|
|
25
|
+
pyopencl/.libs/libOpenCL-34a55fe4.so.1.0.0,sha256=FloXw6mn8nLUYT0YyUj_lg4JL8QisiXg84sz3iE5Brs,922033
|
|
26
|
+
pyopencl/characterize/__init__.py,sha256=1BWTlbHSSM7XSvCalTvpneIW6qKnVwZmn2rfS2VgmVo,14527
|
|
27
|
+
pyopencl/characterize/performance.py,sha256=i8X1jWlyL1bUD7wuDoSlk1CckJkT6zAVPefziQwmNXU,6903
|
|
28
|
+
pyopencl/cl/pyopencl-airy.cl,sha256=S6S84BX6v6E9ZuGB7mdbFygUY99BaManrWMf47Ms7NA,8122
|
|
29
|
+
pyopencl/cl/pyopencl-bessel-j-complex.cl,sha256=o-17yK_wBFqRiGgTYHg9waooTEKt1SCoguMUbg2LOB0,6026
|
|
30
|
+
pyopencl/cl/pyopencl-bessel-j.cl,sha256=69d5WoqajYSubLgA6OVwYw0yOHGt64zY97J8isnsQgU,23274
|
|
31
|
+
pyopencl/cl/pyopencl-bessel-y.cl,sha256=VDy8l4lVxO8VcJR_maeGu_Qjnw27j28zBwhaTKDhBBg,12297
|
|
32
|
+
pyopencl/cl/pyopencl-complex.h,sha256=gy7Ge9tuDeLYdpM8KIvKK347AxK5XPFhlVjJfgPtIlI,8544
|
|
33
|
+
pyopencl/cl/pyopencl-eval-tbl.cl,sha256=YNi_hyeE4GtDwzx3mLOMRIHh9jOOzMwSv-F2F1lMevg,2616
|
|
34
|
+
pyopencl/cl/pyopencl-hankel-complex.cl,sha256=JSm38L6cOdnDssVqzKCNgjMrILT5ExkYAxz7i8rQBtA,31561
|
|
35
|
+
pyopencl/cl/pyopencl-random123/array.h,sha256=nIV0zDWYuybldNgtsh79icNtDXHYdDsSpFaWIvDTyw4,17088
|
|
36
|
+
pyopencl/cl/pyopencl-random123/openclfeatures.h,sha256=pAPbl7JkQgJxulSuGGevpaI43P7PwiH2mYxtNfHq59M,2881
|
|
37
|
+
pyopencl/cl/pyopencl-random123/philox.cl,sha256=vYcQH7Vw13Q3qkW5Nhy1HTUDbWLGKoloE1YP0VWk6vU,21740
|
|
38
|
+
pyopencl/cl/pyopencl-random123/threefry.cl,sha256=2WmQGxx5gPSv22UL9_MlXv0eMug91k3bC-5_yQ4wlnI,54699
|
|
39
|
+
pyopencl/compyte/.gitignore,sha256=HVYtbKRtOCPWZavrgYqO2u7UKFiE7g7ympmuQzKbBBw,168
|
|
40
|
+
pyopencl/compyte/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
|
+
pyopencl/compyte/array.py,sha256=7F4TuQ5SzkV4du-R-GQ7cNLFJNhRU-htVqbVbpkKJ2o,7493
|
|
42
|
+
pyopencl/compyte/dtypes.py,sha256=XqF4-nsU9c5mByIn1na-IDT-lxU-U3tBeJbxXhdlcKU,10616
|
|
43
|
+
pyopencl/compyte/pyproject.toml,sha256=yISxFxhotloFnx_Adffvnr0w2samJwGonr64Eq2YDQo,1145
|
|
44
|
+
pyopencl-2026.1.1.dist-info/METADATA,sha256=gwqdZ_7qLgFxzELrdR9n6twf9JbzYcg8lF4P9jZrmx0,4725
|
|
45
|
+
pyopencl-2026.1.1.dist-info/WHEEL,sha256=A31WOiIZxui6ql1eERDkOU97sIB1Y2NjAbGa5NROIow,161
|
|
46
|
+
pyopencl-2026.1.1.dist-info/RECORD,,
|
|
47
|
+
pyopencl-2026.1.1.dist-info/licenses/LICENSE,sha256=ed06wscfYbymGrF5jRUX9rPCsefHp5ZOv_xgjbXgGrA,5299
|
|
@@ -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.
|