Skip to content

Commit a5b4e16

Browse files
committed
fixup! Add .pyi files to cuda_core
Updates to .pyi files after upgrading
1 parent d63f410 commit a5b4e16

38 files changed

Lines changed: 113 additions & 114 deletions

cuda_core/cuda/core/_context.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_context.pyx
2+
13
from __future__ import annotations
24

35
from collections.abc import Sequence
@@ -81,6 +83,4 @@ class ContextOptions:
8183
"""
8284
resources: DeviceResourcesType
8385
__all__ = ['Context', 'ContextOptions']
84-
DeviceResourcesType = Sequence[SMResource | WorkqueueResource]
85-
86-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_context.pyx
86+
DeviceResourcesType = Sequence[SMResource | WorkqueueResource]

cuda_core/cuda/core/_device.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_device.pyx
2+
13
from __future__ import annotations
24

35
import threading
@@ -908,6 +910,4 @@ class Device:
908910
909911
"""
910912
_tls = threading.local()
911-
_lock = threading.Lock()
912-
913-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_device.pyx
913+
_lock = threading.Lock()

cuda_core/cuda/core/_device_resources.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_device_resources.pyx
2+
13
from __future__ import annotations
24

35
from collections.abc import Sequence as SequenceABC
@@ -142,6 +144,4 @@ class DeviceResources:
142144
@property
143145
def workqueue(self) -> WorkqueueResource:
144146
"""Return the :obj:`WorkqueueResource` for this device or context."""
145-
__all__ = ['DeviceResources', 'SMResource', 'SMResourceOptions', 'WorkqueueResource', 'WorkqueueResourceOptions']
146-
147-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_device_resources.pyx
147+
__all__ = ['DeviceResources', 'SMResource', 'SMResourceOptions', 'WorkqueueResource', 'WorkqueueResourceOptions']

cuda_core/cuda/core/_dlpack.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_dlpack.pyx
2+
13
from __future__ import annotations
24

35
from enum import IntEnum
@@ -19,6 +21,4 @@ def classify_dl_device(buf) -> tuple[int, int]:
1921
2022
``buf`` must expose ``is_device_accessible``, ``is_host_accessible``,
2123
``is_managed``, and ``device_id`` attributes.
22-
"""
23-
24-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_dlpack.pyx
24+
"""

cuda_core/cuda/core/_event.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_event.pyx
2+
13
from __future__ import annotations
24

35
from dataclasses import dataclass
@@ -174,6 +176,4 @@ class IPCEventDescriptor:
174176
...
175177

176178
def _reduce_event(event):
177-
...
178-
179-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_event.pyx
179+
...

cuda_core/cuda/core/_graphics.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_graphics.pyx
2+
13
from __future__ import annotations
24

35
from cuda.bindings import cydriver
@@ -219,6 +221,4 @@ __all__ = ['GraphicsResource']
219221
_REGISTER_FLAGS = {'none': cydriver.CU_GRAPHICS_REGISTER_FLAGS_NONE, 'read_only': cydriver.CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY, 'write_discard': cydriver.CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD, 'surface_load_store': cydriver.CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST, 'texture_gather': cydriver.CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER}
220222

221223
def _parse_register_flags(flags):
222-
...
223-
224-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_graphics.pyx
224+
...

cuda_core/cuda/core/_kernel_arg_handler.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_kernel_arg_handler.pyx
2+
13
from __future__ import annotations
24

35
from libcpp.complex import complex as cpp_complex
@@ -11,6 +13,4 @@ class ParamHolder:
1113
def __dealloc__(self):
1214
...
1315
cpp_single_complex = cpp_complex.complex
14-
cpp_double_complex = cpp_complex.complex
15-
16-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_kernel_arg_handler.pyx
16+
cpp_double_complex = cpp_complex.complex

cuda_core/cuda/core/_launch_config.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_launch_config.pyx
2+
13
from __future__ import annotations
24

35

@@ -75,6 +77,4 @@ def _to_native_launch_config(config: LaunchConfig) -> object:
7577
-------
7678
driver.CUlaunchConfig
7779
Native CUDA driver launch configuration
78-
"""
79-
80-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_launch_config.pyx
80+
"""

cuda_core/cuda/core/_launcher.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_launcher.pyx
2+
13
from __future__ import annotations
24

35
from cuda.core._launch_config import LaunchConfig
@@ -25,6 +27,4 @@ def launch(stream: Stream | GraphBuilder | IsStreamType, config: LaunchConfig, k
2527
Variable length argument list that is provided to the
2628
launching kernel.
2729
28-
"""
29-
30-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_launcher.pyx
30+
"""

cuda_core/cuda/core/_layout.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file was generated by stubgen-pyx v0.2.6 from cuda_core/cuda/core/_layout.pyx
2+
13
from __future__ import annotations
24

35
import cython
@@ -576,6 +578,4 @@ axis_t = int
576578
axes_mask_t = int
577579
property_mask_t = int
578580
extents_strides_t = vector.vector
579-
axis_vec_t = vector.vector
580-
581-
# This file was generated by stubgen-pyx v0.2.5 from cuda_core/cuda/core/_layout.pyx
581+
axis_vec_t = vector.vector

0 commit comments

Comments
 (0)