|
|
|
|
|
by nemetroid
668 days ago
|
|
So what's the enterprise-quality solution for querying the GPU for the information they need? If I search Google for "nvidia-smi.exe", one of the top results is a Stack Overflow answer with 70 upvotes, describing exactly the approach taken by the linked code. https://stackoverflow.com/a/57100016 |
|
On all my Windows/Nvidia systems, the current version of nvidia-smi.exe is present in %SystemRoot%\System32.
OTOH, …\FileRepository*\nvidia-smi.exe matches anywhere from one to eight versions, dating back to 2023.
Perhaps this is only true because I use official Nvidia mechanisms (.exe installer from Nvidia Web site or Nvidia-supplied app) to install drivers, rather than Windows Update or INF install?
Incidentally, the wildcard …\FileRepository\nvdm* suggested in the Stack Overflow answer returns zero directories on my systems, as all Nvidia driver repository directories start with either nv_dispi (GeForce) or nv_dispwi (workstation).
Which makes sense, because obviously the INF file name used to generate these directory names is subject to change without notice.
In any case, per "nvidia-smi --help":