Skip to content

Commit 160a21c

Browse files
Andy-Jostclaude
andcommitted
fix(cuda.core): mark the IPC reconstructor's handle parameter not None
The check-cython-not-none hook from main requires it on a def parameter annotated with a cdef class. Co-Authored-By: Claude Fable 5.1 <[email protected]>
1 parent 34a69a8 commit 160a21c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cuda_core/cuda/core/_memory/_device_memory_resource.pyx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def _deep_reduce_device_memory_resource(mr) -> tuple[object, ...]:
348348

349349

350350
def _reconstruct_device_memory_resource(
351-
cls: type, device_uuid: str, alloc_handle: IPCAllocationHandle
351+
cls: type, device_uuid: str, IPCAllocationHandle alloc_handle not None: IPCAllocationHandle
352352
) -> DeviceMemoryResource:
353353
from .._device import _device_from_uuid
354354
return cls.from_allocation_handle(_device_from_uuid(device_uuid), alloc_handle)

0 commit comments

Comments
 (0)