Skip to main content

Module gpu

Module gpu 

Source
Expand description

Process-lifetime Vulkan initialization and explicit device selection.

The native instance and cached devices remain alive until process exit. Raw users must not destroy or replace that instance, its devices, or allocators.

Structs§

Allocator
A thread-affine allocator arena retained by all of its resident tensors.
BufferDescriptor
A nonowning Vulkan buffer descriptor. Values remain valid only while the tensor guard and its device remain alive.
Command
A recording owner. Outputs remain inaccessible until blocking completion. Dropping or forgetting this owner cannot expose unfinished output storage. The pinned native API does not provide nonblocking submit or fence polling.
Device
An initialized native device. Clones share the process-owned device.
DeviceInfo
Owned metadata copied from the initialized device.
Tensor
A resident buffer with no unsynchronized mapped or raw access.
TensorGuard
A borrowed view of completed resident storage. Forgetting this guard does not release its tensor or grant access to pending commands. The shared borrow prevents safe destruction while the guard remains usable.

Enums§

Precision
Storage and arithmetic policy requested from the Vulkan backend.