pyopencl 2025.2.1__cp310-cp310-macosx_10_14_x86_64.whl → 2025.2.2__cp310-cp310-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/__init__.py +16 -2
- pyopencl/array.py +276 -234
- pyopencl/compyte/.basedpyright/baseline.json +1272 -0
- pyopencl/compyte/array.py +33 -6
- pyopencl/compyte/dtypes.py +39 -13
- pyopencl/compyte/pyproject.toml +15 -0
- pyopencl/reduction.py +55 -28
- pyopencl/typing.py +7 -2
- {pyopencl-2025.2.1.dist-info → pyopencl-2025.2.2.dist-info}/METADATA +1 -1
- {pyopencl-2025.2.1.dist-info → pyopencl-2025.2.2.dist-info}/RECORD +12 -11
- {pyopencl-2025.2.1.dist-info → pyopencl-2025.2.2.dist-info}/WHEEL +0 -0
- {pyopencl-2025.2.1.dist-info → pyopencl-2025.2.2.dist-info}/licenses/LICENSE +0 -0
pyopencl/__init__.py
CHANGED
|
@@ -1004,6 +1004,7 @@ def enqueue_copy(
|
|
|
1004
1004
|
src: HasBufferInterface,
|
|
1005
1005
|
*,
|
|
1006
1006
|
dst_offset: int = 0,
|
|
1007
|
+
is_blocking: bool = True,
|
|
1007
1008
|
wait_for: WaitList = None
|
|
1008
1009
|
) -> Event: ...
|
|
1009
1010
|
|
|
@@ -1014,6 +1015,7 @@ def enqueue_copy(
|
|
|
1014
1015
|
src: Buffer,
|
|
1015
1016
|
*,
|
|
1016
1017
|
src_offset: int = 0,
|
|
1018
|
+
is_blocking: bool = True,
|
|
1017
1019
|
wait_for: WaitList = None
|
|
1018
1020
|
) -> Event: ...
|
|
1019
1021
|
|
|
@@ -1040,6 +1042,7 @@ def enqueue_copy(
|
|
|
1040
1042
|
region: tuple[int, ...],
|
|
1041
1043
|
buffer_pitches: tuple[int, ...] | None = None,
|
|
1042
1044
|
host_pitches: tuple[int, ...] | None = None,
|
|
1045
|
+
is_blocking: bool = True,
|
|
1043
1046
|
wait_for: WaitList = None
|
|
1044
1047
|
) -> Event: ...
|
|
1045
1048
|
|
|
@@ -1054,6 +1057,7 @@ def enqueue_copy(
|
|
|
1054
1057
|
region: tuple[int, ...],
|
|
1055
1058
|
buffer_pitches: tuple[int, ...] | None = None,
|
|
1056
1059
|
host_pitches: tuple[int, ...] | None = None,
|
|
1060
|
+
is_blocking: bool = True,
|
|
1057
1061
|
wait_for: WaitList = None
|
|
1058
1062
|
) -> Event: ...
|
|
1059
1063
|
|
|
@@ -1080,6 +1084,7 @@ def enqueue_copy(
|
|
|
1080
1084
|
origin: tuple[int, ...],
|
|
1081
1085
|
region: tuple[int, ...],
|
|
1082
1086
|
pitches: tuple[int, ...] | None = None,
|
|
1087
|
+
is_blocking: bool = True,
|
|
1083
1088
|
wait_for: WaitList = None
|
|
1084
1089
|
) -> Event: ...
|
|
1085
1090
|
|
|
@@ -1092,6 +1097,7 @@ def enqueue_copy(
|
|
|
1092
1097
|
origin: tuple[int, ...],
|
|
1093
1098
|
region: tuple[int, ...],
|
|
1094
1099
|
pitches: tuple[int, ...] | None = None,
|
|
1100
|
+
is_blocking: bool = True,
|
|
1095
1101
|
wait_for: WaitList = None
|
|
1096
1102
|
) -> Event: ...
|
|
1097
1103
|
|
|
@@ -1134,10 +1140,16 @@ def enqueue_copy(
|
|
|
1134
1140
|
@overload
|
|
1135
1141
|
def enqueue_copy(
|
|
1136
1142
|
queue: CommandQueue,
|
|
1137
|
-
dest: SVMPointer,
|
|
1138
|
-
src: SVMPointer,
|
|
1143
|
+
dest: SVMPointer | HasBufferInterface,
|
|
1144
|
+
src: SVMPointer | HasBufferInterface,
|
|
1139
1145
|
*,
|
|
1140
1146
|
byte_count: int | None = None,
|
|
1147
|
+
|
|
1148
|
+
# do not use, must be zero
|
|
1149
|
+
src_offset: int = 0,
|
|
1150
|
+
dst_offset: int = 0,
|
|
1151
|
+
|
|
1152
|
+
is_blocking: bool = True,
|
|
1141
1153
|
wait_for: WaitList = None
|
|
1142
1154
|
) -> Event: ...
|
|
1143
1155
|
|
|
@@ -1686,6 +1698,7 @@ def svm_empty(
|
|
|
1686
1698
|
dtype = np.dtype(dtype)
|
|
1687
1699
|
|
|
1688
1700
|
try:
|
|
1701
|
+
shape = cast("tuple[int, ...]", shape)
|
|
1689
1702
|
s = 1
|
|
1690
1703
|
for dim in shape:
|
|
1691
1704
|
s *= dim
|
|
@@ -1885,6 +1898,7 @@ __all__ = [
|
|
|
1885
1898
|
"SVMPointer",
|
|
1886
1899
|
"Sampler",
|
|
1887
1900
|
"UserEvent",
|
|
1901
|
+
"WaitList",
|
|
1888
1902
|
"_csc",
|
|
1889
1903
|
"addressing_mode",
|
|
1890
1904
|
"channel_order",
|