-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Labels
P0High priority - Must do!High priority - Must do!RFCPlans and announcementsPlans and announcementsbreakingBreaking changes are introducedBreaking changes are introducedcuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core module
Milestone
Description
There are two ways a buffer can be deallocated.
- Explicitly via calling Buffer.close()
def close(self, stream: Stream = None): - Implicitly via finalizer
weakref.finalize(buffer_obj, self.close)
In the implicit case, no stream=
argument is passed to the finalizer function, which means that if a buffer gets refcounted out or gc'd, it will always be deallocated on the default stream.
Possibly we want to change this so that the stream
passed to the mr.allocate()
function is used for deallocation by default.
Metadata
Metadata
Assignees
Labels
P0High priority - Must do!High priority - Must do!RFCPlans and announcementsPlans and announcementsbreakingBreaking changes are introducedBreaking changes are introducedcuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core module
Type
Projects
Status
Todo