PROPHET/OS

NAME

ways: the device pool (R13-WAYS-01)

SYNOPSIS

ways [devices | prefer <dev|class> | only <dev|class> | measured | pin <what> <way|dev> | unpin <what>]

DESCRIPTION

The device pool (R13-WAYS-01): one row per device of the machine, read off the hardware, and the one choice every service makes from it. The CPU's row comes from CPUID; a card's row from its driver, which asked the card itself: its family, units, memory and what it can do (compute, draw, copy, the tensor kinds, ray tracing cores, optical flow, video). A way is offered only on a device that has what it needs.

ways alone shows the devices, the policy, the pins and the stored measurement. ways devices shows the devices only.

ways prefer gpu0 lets every service with a way on that device take it, even where the CPU is faster; a class (gpu, cpu, fabric) stands for every device of it. ways only cpu allows no other way at all. ways measured goes back to the fastest of the stored measurement. ways pin <what> <way|dev> sets one service or pass by hand, and the hand beats the policy; ways unpin <what> takes it back. The policy and the pins stand in /system/config/ways.conf.

Only this command measures: nothing times its ways at the start, in a scene or per cloth. ways measure times every way on its own probe work (ProphetGL's providers on scene 4, ppl.wind, smoke and heat on 64^3 cells, particles, fluid, the cloth of ppl.soft, every array job of engine), says which way each takes and stores the times in /system/config/ways.measured with this machine's devices and build. lux, cell and the libraries read that file at their start and take its way at once. Without the file, or with a stale one, a service takes its default (the machine's best way first, for physics the last CPU way) and the ways table says "by priority, not measured".

Back comes 0, or 1 when a word is unknown or the conf cannot be written.

EXAMPLE

$ ways
cpu  Intel(R) Xeon(R) W-11955M CPU @ 2.60GHz, 8 processors, ext: sse4.1 aes avx avx2 avx512 sha vaes gfni
gpu0  Bochs-VBE  bochs ?, 0 units, 0 MiB (0 free), can:
policy: measured
measurement: none; `ways measure` takes it

SEE ALSO

pgl, gpu, lux