Skip to content

Commit 8a1ca77

Browse files
committed
avoid manual cleanup of object attributes
1 parent fdf4edc commit 8a1ca77

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cuda_core/cuda/core/experimental/_memory.pyx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ cdef class Buffer(_cyBuffer, MemoryResourceAttributes):
160160
s = <cyStream>stream
161161
self._mr._deallocate(self._ptr, self._size, s)
162162
self._ptr = 0
163-
self._mr = None
164-
self._ptr_obj = None
165-
self._alloc_stream = None
166163

167164
@property
168165
def handle(self) -> DevicePointerT:
@@ -763,12 +760,9 @@ cdef class DeviceMemoryResource(MemoryResource):
763760
self.unregister()
764761
self._dev_id = cydriver.CU_DEVICE_INVALID
765762
self._mempool_handle = NULL
766-
self._attributes = None
767763
self._ipc_handle_type = cydriver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_MAX
768764
self._mempool_owned = False
769765
self._is_mapped = False
770-
self._uuid = None
771-
self._alloc_handle = None
772766

773767
def __reduce__(self):
774768
return DeviceMemoryResource.from_registry, (self.uuid,)

0 commit comments

Comments
 (0)