Last updated: 2026-06-12
Hardware Detection
GPU Detect
Inspect the selected Vulkan device and derive architecture-specific tuning defaults.
The heuristics here convert raw Vulkan device properties into the settings used by DMMV, matmul, and attention dispatch code.
3 exports shown
enum
GpuVendor
pub const GpuVendor = enum GPU vendor and architecture buckets used by ZINC's tuning heuristics.
struct
GpuConfig
pub const GpuConfig = struct Auto-detected GPU capabilities and derived tuning parameters.
Methods
2method
GpuConfig.nameSlice
pub fn nameSlice(self: *const GpuConfig) []const u8 Return the device name as a byte slice covering only the populated prefix.
method
GpuConfig.log_info
pub fn log_info(self: *const GpuConfig) void Log the detected GPU name, vendor, memory, wave size, cooperative-matrix support, and all derived tuning parameters at info level.
function
detect
pub fn detect(instance: *const Instance) GpuConfig Inspect Vulkan device properties and derive runtime tuning defaults.