mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-28 09:09:39 +01:00
The proprietary NVIDIA driver on Linux has no sysfs file for the card's memory, so the upload budget stayed at 1.5 GiB there. When the adapter is NVIDIA and nothing else reported its memory, run nvidia-smi once (no console window, 3 s timeout, cached) and take the line of the adapter's PCI address, else of its device id, else the smallest card.