0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Rabier
2b05533c77 intel fp8 local 2026-11-13 14:38:29 +01:00
Benjamin Rabier
bca55296bf zml-smi: ignore fdinfo reads that race with a closed fd
procfs looks an fdinfo file's fd up again on every read, so a file that
opened fine fails to read with ENOENT once that fd is closed, or ENOENT
or ESRCH once its process exits. zml-smi's own poller threads open and
close files all the time, so scanning /proc/self/fdinfo hit this about
twice a second. The error was already ignored, but std.Io treats that
errno as unexpected and, in Debug builds, prints a stack trace over the
`zml-smi --top` TUI.

Read fdinfo files with a new sysfs.readProcFile, which uses the raw read
syscall and reports ENOENT and ESRCH as error.FileNotFound. Use it in the
oneAPI and AMD fdinfo readers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 00:02:04 +01:00
73 changed files with 3609 additions and 3838 deletions