Machine and Engines¶
hifuku.system tells which of the three engines can run on the machine, and
on what device. hifuku info prints the same information. An engine that
cannot run is a normal state of a machine, so each function returns a status
and none raises.
EngineStatus
dataclass
¶
Whether one engine can run on this machine.
note is one line: the device the engine runs on, or why it cannot run.
software is true for a WebGPU adapter that runs the kernels on the CPU,
which is slower than the CPU engine.
Source code in src/hifuku/system.py
cpu_status
¶
cuda_status
¶
The CUDA engine. It can run when numba finds an NVIDIA GPU and its driver. The note names the GPU and its compute capability.
Source code in src/hifuku/system.py
wgsl_status
¶
The WGSL engine. It can run when wgpu is installed and WebGPU finds an
adapter. The note names the adapter and its graphics API, for example
Metal. An adapter that runs in software on the CPU sets software.
Source code in src/hifuku/system.py
auto_engine
¶
The engine of --device auto: CUDA, then a hardware WebGPU adapter,
then the CPU.
Source code in src/hifuku/system.py
report
¶
The text of hifuku info: the host, each engine and the packages.
Source code in src/hifuku/system.py
cpu_model
¶
The name of the host CPU, or the machine type when no name is found.
Source code in src/hifuku/system.py
memory_bytes
¶
The physical memory of the host, or None where the OS does not say.