pyopencl 2025.2.4__cp312-cp312-macosx_10_14_x86_64.whl → 2025.2.5__cp312-cp312-macosx_10_14_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/_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
- QUEUED: int # pyright: ignore[reportUninitializedInstanceVariable]
208
- SUBMIT: int # pyright: ignore[reportUninitializedInstanceVariable]
209
- START: int # pyright: ignore[reportUninitializedInstanceVariable]
210
- END: int # pyright: ignore[reportUninitializedInstanceVariable]
211
- COMPLETE: int # pyright: ignore[reportUninitializedInstanceVariable]
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
@@ -2380,7 +2380,7 @@ def _arange_knl(result, start, step):
2380
2380
  result.context, result.dtype)
2381
2381
 
2382
2382
 
2383
- def arange(queue, *args, **kwargs):
2383
+ def arange(queue: cl.CommandQueue, *args: Any, **kwargs: Any) -> Array:
2384
2384
  """arange(queue, [start, ] stop [, step], **kwargs)
2385
2385
  Create a :class:`Array` filled with numbers spaced *step* apart,
2386
2386
  starting from *start* and ending at *stop*. If not given, *start*
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 | list[DtypedArgument],
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 | list[DtypedArgument],
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, name: str, dtype: DTypeLike, with_offset: bool = False):
810
- super().__init__(name, dtype)
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] | list[DtypedArgument],
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyopencl
3
- Version: 2025.2.4
3
+ Version: 2025.2.5
4
4
  Summary: Python wrapper for OpenCL
5
5
  Author-Email: Andreas Kloeckner <inform@tiker.net>
6
6
  License-Expression: MIT
@@ -4,8 +4,8 @@ pyopencl/clmath.py,sha256=d5aHPy0WQMb01anNAX2nk7t-yRBIEif7sW3aTXEiEUo,8258
4
4
  pyopencl/version.py,sha256=53bqHNFDyobSVMAdQ47kiOx1UdhKXDLkTtzNwfLEvY4,304
5
5
  pyopencl/capture_call.py,sha256=c1X3HKwtikqgkSuMSvMNKezYCrAtCc8Wt60cvGfFJTQ,6479
6
6
  pyopencl/reduction.py,sha256=2Gf91Rw0mUu61SVSqhYWhReV5Ru28Qw60CXmXLhSDO8,26644
7
- pyopencl/tools.py,sha256=bKX4ND-DcKXr7dCFJoJ6C3SWPNFNKA490oDofTaRuCI,46596
8
- pyopencl/elementwise.py,sha256=uc8aXWv60yUtlwwKhCOVVeo5o7ylPoQPTRLsnRF6gTY,38678
7
+ pyopencl/tools.py,sha256=iOq12orX94CRx1V-f2cpxW4jSx-ax-MDq_KuiIydqOE,46600
8
+ pyopencl/elementwise.py,sha256=n7UTT8CyJnC25g_77IqH5uprbz_mA1qNvRdzCGNbS-I,38762
9
9
  pyopencl/cache.py,sha256=RiSW4K8FynlV8ibwyDngzSFOa3k-Zi16GSSK05yrdZk,16017
10
10
  pyopencl/__init__.py,sha256=70i8Bo6qCxXT61loiSs4MfHBk_MDzgDN9eVMnR8Kab4,63178
11
11
  pyopencl/_cl.pyi,sha256=VmAi42KFEFL5UdCMuX7I45j16mve3RBGXFfkbSwBICw,56235
@@ -16,9 +16,9 @@ pyopencl/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  pyopencl/scan.py,sha256=2OZL2e0q1SPR2N_vXAJKD_Q8m14YE3LSFxeRMC_NrVQ,65619
17
17
  pyopencl/_cluda.py,sha256=kjI6pW9M-zGCVDsautsKsYMs1U9v73_W5riUjdzmKA0,2111
18
18
  pyopencl/_mymako.py,sha256=1xp0pWcE57hpIDKw915CvOGQpC-Jral02Inykx_k198,657
19
- pyopencl/_monkeypatch.py,sha256=bBJjQYW6XdiurbG_jgTzJg5BtDteuNVqRQ3Fuzx-Gbk,34845
19
+ pyopencl/_monkeypatch.py,sha256=5nozUgttW4vd-6MxpIyOcaugd0HWvOhzXP3kqqbRAXE,35131
20
20
  pyopencl/typing.py,sha256=LN50UCqujen7SE5cforFvJLoEd3KNEKygxuQiZV4YoQ,1986
21
- pyopencl/array.py,sha256=kqCowsSiDxdbcpuSYK2bgwbRlBvkSCsOQBfroHVYkiE,112042
21
+ pyopencl/array.py,sha256=uxBr1XIqmCWctwMaSrYgbdTBLPLhNbT5_pRPLvqcr_E,112078
22
22
  pyopencl/bitonic_sort.py,sha256=FpTfCf_s22O-SgPWBoXZjCG_k1afm7uUwnO9N7jubgg,8052
23
23
  pyopencl/bitonic_sort_templates.py,sha256=316nsWdr7jpg9g8SmZk8KCoHmHKabjvOdBaufxQPw8Y,16188
24
24
  pyopencl/clrandom.py,sha256=Ox_Eebq5fcjsBXpa68C1kt8Ca6CPi5tXwXhEhLY_yP8,13081
@@ -40,7 +40,7 @@ pyopencl/cl/pyopencl-random123/threefry.cl,sha256=2WmQGxx5gPSv22UL9_MlXv0eMug91k
40
40
  pyopencl/cl/pyopencl-random123/philox.cl,sha256=vYcQH7Vw13Q3qkW5Nhy1HTUDbWLGKoloE1YP0VWk6vU,21740
41
41
  pyopencl/cl/pyopencl-random123/array.h,sha256=nIV0zDWYuybldNgtsh79icNtDXHYdDsSpFaWIvDTyw4,17088
42
42
  pyopencl/cl/pyopencl-random123/openclfeatures.h,sha256=pAPbl7JkQgJxulSuGGevpaI43P7PwiH2mYxtNfHq59M,2881
43
- pyopencl-2025.2.4.dist-info/RECORD,,
44
- pyopencl-2025.2.4.dist-info/WHEEL,sha256=j2V23VI7WgWaq7aDf0q4lfCbLJBroxkpXf_c-FN4PtQ,143
45
- pyopencl-2025.2.4.dist-info/METADATA,sha256=eDa4Y8wB7m8VTYu2x8JpG8sRIiasx7ZPXA-HHsklghM,4756
46
- pyopencl-2025.2.4.dist-info/licenses/LICENSE,sha256=wiBvs-UC54bB5DswWuvB66B96b4hkYw_VLt8IR0cBPI,15284
43
+ pyopencl-2025.2.5.dist-info/RECORD,,
44
+ pyopencl-2025.2.5.dist-info/WHEEL,sha256=qYDS6287NZHP4IMf5CZFGO8cZ9YlJRw4Rag06i25kf0,143
45
+ pyopencl-2025.2.5.dist-info/METADATA,sha256=jpfnZrTC8aQ64IAV3PyDhQGSPwEEHTRHj8QgMvCYc08,4756
46
+ pyopencl-2025.2.5.dist-info/licenses/LICENSE,sha256=wiBvs-UC54bB5DswWuvB66B96b4hkYw_VLt8IR0cBPI,15284
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: scikit-build-core 0.11.4
2
+ Generator: scikit-build-core 0.11.5
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-macosx_10_14_x86_64
5
5
  Generator: delocate 0.13.0