Skip to main content

Module direct

Module direct 

Source
Expand description

Default-device-stream allocation through the shared raw storage owner.

Allocation/free use the same explicit mode selected from context capability. Failed initialization retains actual storage; reclamation proves physical release before refunding bytes. Caller stream IDs are block metadata, not proof of arbitrary pool routing. Sanitizer qualification remains separate.

Structsยง

DirectCudaResource
Default-device-stream allocation adaptor. The live map retains actual raw owners while callers hold opaque DeviceBlock identities. Deallocation removes an exact identity and queues its actual owner after unlocking the map. Reclamation waits for shared leases; an unknown physical-free outcome retains the owner and its outstanding byte charge for a later reap.