// // HardwareGate.swift // Zyquo Local // // Author: Simon-Pierre Boucher // Mail: contact@spboucher.ai // import Foundation /// MLX requires Apple Silicon. The binary is arm64-only, so this gate is a /// defensive runtime check (e.g. against a future universal build). enum HardwareGate { static var isAppleSilicon: Bool { #if arch(arm64) return true #else return false #endif } /// Physical unified memory in bytes (`sysctl hw.memsize`). static var physicalMemory: UInt64 { var size: UInt64 = 0 var len = MemoryLayout.size sysctlbyname("hw.memsize", &size, &len, nil, 0) return size } }