Files
photocraft/crates
ffd4d480bb Integration: bound the nvidia-smi query, smallest of same-id cards (#9042)
nvidia_video_memory ran `nvidia-smi` with Command::output(), which has no
deadline. It runs on the UI thread at startup, under the video-memory cache
lock, so a driver that never answers the query kept the window from opening.
It now runs with a 2 s deadline (stdout read on a helper thread, try_wait
polling), and a late process is killed and reaped on a detached thread.

parse_nvidia_smi took the first line naming the vendor/device id. Two cards
of one model with different memory (`0x2C0510DE, 16303` then
`0x2C0510DE, 8192`) gave 16 GB though wgpu may be on the 8 GB one; it now
takes the smallest.

Co-authored-by: Vishnu Vardhan Varma Byrraju <112673081+VishnuByrraju@users.noreply.github.com>
Co-authored-by: Khawar Zamman Wani <28915582+wanikhawar@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:02:57 +01:00
..
2026-10-23 20:37:05 +00:00
…
…
2026-10-23 20:37:05 +00:00