pyopencl 2025.2.3__cp313-cp313-musllinux_1_2_x86_64.whl → 2025.2.5__cp313-cp313-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.
- pyopencl/.libs/{libOpenCL-43636d0e.so.1.0.0 → libOpenCL-4a7ed9fc.so.1.0.0} +0 -0
- pyopencl/_cl.cpython-313-x86_64-linux-musl.so +0 -0
- pyopencl/_monkeypatch.py +11 -5
- pyopencl/array.py +37 -3
- pyopencl/elementwise.py +7 -3
- pyopencl/tools.py +3 -3
- pyopencl/typing.py +4 -0
- {pyopencl-2025.2.3.dist-info → pyopencl-2025.2.5.dist-info}/METADATA +1 -1
- {pyopencl-2025.2.3.dist-info → pyopencl-2025.2.5.dist-info}/RECORD +11 -11
- {pyopencl-2025.2.3.dist-info → pyopencl-2025.2.5.dist-info}/WHEEL +1 -1
- {pyopencl-2025.2.3.dist-info → pyopencl-2025.2.5.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
|
Binary file
|
pyopencl/_monkeypatch.py
CHANGED
|
@@ -196,6 +196,12 @@ class ProfilingInfoGetter:
|
|
|
196
196
|
def __getattr__(self, name: str):
|
|
197
197
|
info_cls = _cl.profiling_info
|
|
198
198
|
|
|
199
|
+
if not name.islower():
|
|
200
|
+
warn(f"Using non-lower-case attributes with Event.profile "
|
|
201
|
+
f"is deprecated. Got: '{name}', expected: '{name.lower()}'. "
|
|
202
|
+
"This will stop working in 2026.",
|
|
203
|
+
DeprecationWarning, stacklevel=2)
|
|
204
|
+
|
|
199
205
|
try:
|
|
200
206
|
inf_attr = getattr(info_cls, name.upper())
|
|
201
207
|
except AttributeError as err:
|
|
@@ -204,11 +210,11 @@ class ProfilingInfoGetter:
|
|
|
204
210
|
else:
|
|
205
211
|
return self.event.get_profiling_info(inf_attr)
|
|
206
212
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
213
|
+
queued: int # pyright: ignore[reportUninitializedInstanceVariable]
|
|
214
|
+
submit: int # pyright: ignore[reportUninitializedInstanceVariable]
|
|
215
|
+
start: int # pyright: ignore[reportUninitializedInstanceVariable]
|
|
216
|
+
end: int # pyright: ignore[reportUninitializedInstanceVariable]
|
|
217
|
+
complete: int # pyright: ignore[reportUninitializedInstanceVariable]
|
|
212
218
|
|
|
213
219
|
|
|
214
220
|
kernel_old_get_info = _cl.Kernel.get_info
|
pyopencl/array.py
CHANGED
|
@@ -59,6 +59,7 @@ from pyopencl.compyte.array import (
|
|
|
59
59
|
equal_strides as _equal_strides,
|
|
60
60
|
f_contiguous_strides as _f_contiguous_strides,
|
|
61
61
|
)
|
|
62
|
+
from pyopencl.typing import Allocator
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
if TYPE_CHECKING:
|
|
@@ -66,8 +67,6 @@ if TYPE_CHECKING:
|
|
|
66
67
|
|
|
67
68
|
from numpy.typing import DTypeLike, NDArray
|
|
68
69
|
|
|
69
|
-
from pyopencl.typing import Allocator
|
|
70
|
-
|
|
71
70
|
|
|
72
71
|
SCALAR_CLASSES = (Number, np.bool_, bool)
|
|
73
72
|
|
|
@@ -2381,7 +2380,7 @@ def _arange_knl(result, start, step):
|
|
|
2381
2380
|
result.context, result.dtype)
|
|
2382
2381
|
|
|
2383
2382
|
|
|
2384
|
-
def arange(queue, *args, **kwargs):
|
|
2383
|
+
def arange(queue: cl.CommandQueue, *args: Any, **kwargs: Any) -> Array:
|
|
2385
2384
|
"""arange(queue, [start, ] stop [, step], **kwargs)
|
|
2386
2385
|
Create a :class:`Array` filled with numbers spaced *step* apart,
|
|
2387
2386
|
starting from *start* and ending at *stop*. If not given, *start*
|
|
@@ -3404,4 +3403,39 @@ def cumsum(a, output_dtype=None, queue: cl.CommandQueue | None = None,
|
|
|
3404
3403
|
|
|
3405
3404
|
# }}}
|
|
3406
3405
|
|
|
3406
|
+
|
|
3407
|
+
__all__ = [
|
|
3408
|
+
"Allocator",
|
|
3409
|
+
"Array",
|
|
3410
|
+
"all",
|
|
3411
|
+
"any",
|
|
3412
|
+
"arange",
|
|
3413
|
+
"as_strided",
|
|
3414
|
+
"concatenate",
|
|
3415
|
+
"cumsum",
|
|
3416
|
+
"diff",
|
|
3417
|
+
"dot",
|
|
3418
|
+
"empty_like",
|
|
3419
|
+
"hstack",
|
|
3420
|
+
"if_positive",
|
|
3421
|
+
"logical_and",
|
|
3422
|
+
"logical_not",
|
|
3423
|
+
"logical_or",
|
|
3424
|
+
"maximum",
|
|
3425
|
+
"minimum",
|
|
3426
|
+
"multi_put",
|
|
3427
|
+
"multi_take",
|
|
3428
|
+
"multi_take_put",
|
|
3429
|
+
"reshape",
|
|
3430
|
+
"stack",
|
|
3431
|
+
"subset_dot",
|
|
3432
|
+
"sum",
|
|
3433
|
+
"take",
|
|
3434
|
+
"to_device",
|
|
3435
|
+
"transpose",
|
|
3436
|
+
"vdot",
|
|
3437
|
+
"zeros",
|
|
3438
|
+
"zeros_like",
|
|
3439
|
+
]
|
|
3440
|
+
|
|
3407
3441
|
# vim: foldmethod=marker
|
pyopencl/elementwise.py
CHANGED
|
@@ -29,7 +29,7 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
import enum
|
|
32
|
-
from typing import Any
|
|
32
|
+
from typing import TYPE_CHECKING, Any
|
|
33
33
|
|
|
34
34
|
import numpy as np
|
|
35
35
|
|
|
@@ -47,6 +47,10 @@ from pyopencl.tools import (
|
|
|
47
47
|
)
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
if TYPE_CHECKING:
|
|
51
|
+
from collections.abc import Sequence
|
|
52
|
+
|
|
53
|
+
|
|
50
54
|
# {{{ elementwise kernel code generator
|
|
51
55
|
|
|
52
56
|
def get_elwise_program(
|
|
@@ -119,7 +123,7 @@ def get_elwise_program(
|
|
|
119
123
|
|
|
120
124
|
def get_elwise_kernel_and_types(
|
|
121
125
|
context: cl.Context,
|
|
122
|
-
arguments: str |
|
|
126
|
+
arguments: str | Sequence[DtypedArgument],
|
|
123
127
|
operation: str, *,
|
|
124
128
|
name: str = "elwise_kernel",
|
|
125
129
|
options: Any = None,
|
|
@@ -229,7 +233,7 @@ class ElementwiseKernel:
|
|
|
229
233
|
def __init__(
|
|
230
234
|
self,
|
|
231
235
|
context: cl.Context,
|
|
232
|
-
arguments: str |
|
|
236
|
+
arguments: str | Sequence[DtypedArgument],
|
|
233
237
|
operation: str,
|
|
234
238
|
name: str = "elwise_kernel",
|
|
235
239
|
options: Any = None, **kwargs: Any) -> None:
|
pyopencl/tools.py
CHANGED
|
@@ -806,8 +806,8 @@ class VectorArg(DtypedArgument):
|
|
|
806
806
|
"""
|
|
807
807
|
with_offset: bool
|
|
808
808
|
|
|
809
|
-
def __init__(self,
|
|
810
|
-
super().__init__(
|
|
809
|
+
def __init__(self, dtype: DTypeLike, name: str, with_offset: bool = False):
|
|
810
|
+
super().__init__(dtype, name)
|
|
811
811
|
object.__setattr__(self, "with_offset", with_offset)
|
|
812
812
|
|
|
813
813
|
@override
|
|
@@ -860,7 +860,7 @@ def parse_c_arg(c_arg: str, with_offset: bool = False) -> DtypedArgument:
|
|
|
860
860
|
|
|
861
861
|
|
|
862
862
|
def parse_arg_list(
|
|
863
|
-
arguments: str | list[str] |
|
|
863
|
+
arguments: str | list[str] | Sequence[DtypedArgument],
|
|
864
864
|
with_offset: bool = False) -> list[DtypedArgument]:
|
|
865
865
|
"""Parse a list of kernel arguments. *arguments* may be a comma-separate
|
|
866
866
|
list of C declarators in a string, a list of strings representing C
|
pyopencl/typing.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
pyopencl/__init__.py,sha256=70i8Bo6qCxXT61loiSs4MfHBk_MDzgDN9eVMnR8Kab4,63178
|
|
2
|
-
pyopencl/_cl.cpython-313-x86_64-linux-musl.so,sha256
|
|
2
|
+
pyopencl/_cl.cpython-313-x86_64-linux-musl.so,sha256=zc9R8yyFhZelFdS5bcLgH2qmdXz_SRtfiBdzcgtgEsk,2907841
|
|
3
3
|
pyopencl/_cl.pyi,sha256=VmAi42KFEFL5UdCMuX7I45j16mve3RBGXFfkbSwBICw,56235
|
|
4
4
|
pyopencl/_cluda.py,sha256=kjI6pW9M-zGCVDsautsKsYMs1U9v73_W5riUjdzmKA0,2111
|
|
5
|
-
pyopencl/_monkeypatch.py,sha256=
|
|
5
|
+
pyopencl/_monkeypatch.py,sha256=5nozUgttW4vd-6MxpIyOcaugd0HWvOhzXP3kqqbRAXE,35131
|
|
6
6
|
pyopencl/_mymako.py,sha256=1xp0pWcE57hpIDKw915CvOGQpC-Jral02Inykx_k198,657
|
|
7
7
|
pyopencl/algorithm.py,sha256=NuBpzVlfY8V6nKcGcQe5uXGnVka7LV1hHCi-uBCAxVc,51370
|
|
8
|
-
pyopencl/array.py,sha256=
|
|
8
|
+
pyopencl/array.py,sha256=uxBr1XIqmCWctwMaSrYgbdTBLPLhNbT5_pRPLvqcr_E,112078
|
|
9
9
|
pyopencl/bitonic_sort.py,sha256=FpTfCf_s22O-SgPWBoXZjCG_k1afm7uUwnO9N7jubgg,8052
|
|
10
10
|
pyopencl/bitonic_sort_templates.py,sha256=316nsWdr7jpg9g8SmZk8KCoHmHKabjvOdBaufxQPw8Y,16188
|
|
11
11
|
pyopencl/cache.py,sha256=RiSW4K8FynlV8ibwyDngzSFOa3k-Zi16GSSK05yrdZk,16017
|
|
@@ -13,16 +13,16 @@ pyopencl/capture_call.py,sha256=c1X3HKwtikqgkSuMSvMNKezYCrAtCc8Wt60cvGfFJTQ,6479
|
|
|
13
13
|
pyopencl/clmath.py,sha256=d5aHPy0WQMb01anNAX2nk7t-yRBIEif7sW3aTXEiEUo,8258
|
|
14
14
|
pyopencl/clrandom.py,sha256=Ox_Eebq5fcjsBXpa68C1kt8Ca6CPi5tXwXhEhLY_yP8,13081
|
|
15
15
|
pyopencl/cltypes.py,sha256=hDpwt24YFtng0Z4qNJB5D0NxkOIGwnLRUQKoaWcMcnE,6045
|
|
16
|
-
pyopencl/elementwise.py,sha256=
|
|
16
|
+
pyopencl/elementwise.py,sha256=n7UTT8CyJnC25g_77IqH5uprbz_mA1qNvRdzCGNbS-I,38762
|
|
17
17
|
pyopencl/invoker.py,sha256=ws1kdpzIkc7vc7s4jxtJ7IcdCa5qOT5DiYW6rMxjVVg,13706
|
|
18
18
|
pyopencl/ipython_ext.py,sha256=_l9y3F2fi-tM7_cIlqY1LyWckYHYfVYBKCI4RNpEpKo,1951
|
|
19
19
|
pyopencl/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
pyopencl/reduction.py,sha256=2Gf91Rw0mUu61SVSqhYWhReV5Ru28Qw60CXmXLhSDO8,26644
|
|
21
21
|
pyopencl/scan.py,sha256=2OZL2e0q1SPR2N_vXAJKD_Q8m14YE3LSFxeRMC_NrVQ,65619
|
|
22
|
-
pyopencl/tools.py,sha256=
|
|
23
|
-
pyopencl/typing.py,sha256=
|
|
22
|
+
pyopencl/tools.py,sha256=iOq12orX94CRx1V-f2cpxW4jSx-ax-MDq_KuiIydqOE,46600
|
|
23
|
+
pyopencl/typing.py,sha256=LN50UCqujen7SE5cforFvJLoEd3KNEKygxuQiZV4YoQ,1986
|
|
24
24
|
pyopencl/version.py,sha256=53bqHNFDyobSVMAdQ47kiOx1UdhKXDLkTtzNwfLEvY4,304
|
|
25
|
-
pyopencl/.libs/libOpenCL-
|
|
25
|
+
pyopencl/.libs/libOpenCL-4a7ed9fc.so.1.0.0,sha256=nDMANkMHjtS1k8meh6rU6Kg7aIMEiHHO3NZgLniIU9I,610825
|
|
26
26
|
pyopencl/characterize/__init__.py,sha256=AaDNS1p2RtXqGf6tA--GB9FRp-fzavbpgulrAW_BE2Y,14565
|
|
27
27
|
pyopencl/characterize/performance.py,sha256=i8X1jWlyL1bUD7wuDoSlk1CckJkT6zAVPefziQwmNXU,6903
|
|
28
28
|
pyopencl/cl/pyopencl-airy.cl,sha256=S6S84BX6v6E9ZuGB7mdbFygUY99BaManrWMf47Ms7NA,8122
|
|
@@ -41,7 +41,7 @@ pyopencl/compyte/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
41
41
|
pyopencl/compyte/array.py,sha256=t1XORyCQ4zRe_KUnoo4LH1W5XOcGXaf5xvGtgOPDzyg,8035
|
|
42
42
|
pyopencl/compyte/dtypes.py,sha256=S_cGvFOq07fgwloCq9pxjzlDpxPbwwRb-pb1TOH77nU,10546
|
|
43
43
|
pyopencl/compyte/pyproject.toml,sha256=WmDOFf4Z22yumhUw8tEet-XBtqO36K4eL9nbr4xpzlw,1280
|
|
44
|
-
pyopencl-2025.2.
|
|
45
|
-
pyopencl-2025.2.
|
|
46
|
-
pyopencl-2025.2.
|
|
47
|
-
pyopencl-2025.2.
|
|
44
|
+
pyopencl-2025.2.5.dist-info/METADATA,sha256=jpfnZrTC8aQ64IAV3PyDhQGSPwEEHTRHj8QgMvCYc08,4756
|
|
45
|
+
pyopencl-2025.2.5.dist-info/WHEEL,sha256=lXjQbwIrAWje9mzQrivqTc7SQSeOcD5xy0uuE4BHmTo,117
|
|
46
|
+
pyopencl-2025.2.5.dist-info/RECORD,,
|
|
47
|
+
pyopencl-2025.2.5.dist-info/licenses/LICENSE,sha256=ed06wscfYbymGrF5jRUX9rPCsefHp5ZOv_xgjbXgGrA,5299
|
|
File without changes
|