kicad2ems.core.sysinfo

What this machine offers a run: the solvers (each one's check), the GPUs they
would use (each one's resources()) and the memory of the system and of the GPU.
The GUI's System panel runs it as its own process (python -m
kicad2ems.core.sysinfo: JSON on stdout), so the GUI never holds a GPU context or
imports CuPy.

    info()      dict(solvers=[dict(name, label, ok, what)],
                     resources={solver: dict(gpus, why)},
                     gpu=dict(...) | None, gpu_why,
                     ram=dict(total, available), cpus, threads)
    core_threads()  the worker count of a parallel map: one per fast physical
                    core (emsdev)
kicad2ems.core.sysinfo.gpu(res=None)[source]
(dict(device, backend, api, free, total) in GB, or None; why there is
none): the GPU the solvers would use, mom25d's first (the System panel's
memory check is about its LU), else any solver's.
kicad2ems.core.sysinfo.memory()[source]
System memory in GB: installed, and available to this process now (cgroup
aware, as the solvers see it).
kicad2ems.core.sysinfo.resources()[source]
{solver: dict(gpus, why)}: what each installed solver would run on here
(Solver.resources); a solver that answers None runs on the CPU only and is
left out.