Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

How to install nvidia-smi in debian?

3 Answer(s) Available
Answer # 1 #

This section deals with installing the drivers via the *.run executables provided by Nvidia.

To download only the drivers, navigate to http://www.nvidia.com/object/unix.html and click the Latest Long Lived Branch version under the appropriate CPU architecture. On the ensuing page, click Download and then click Agree and Download on the page that follows.

If you'd prefer to download the full driver repository, Nvidia provides a tool to recommend the most recent available driver for your graphics card at http://www.Nvidia.com/Download/index.aspx?lang=en-us.

If you are unsure which Nvidia devices are installed, the lspci command should give you that information:

Download the recommended driver executable. Change the file permissions to allow execution:

Run the install. If you are prompted about cryptographic signatures on the kernel module, answer Sign the Kernel Module and then Generate a new key pair. At the end, DO NOT update your X config if it asks. Note that the following attempts to diagnose a common problem where the installer fails to correctly detect and deal with the situation where the kernel has been signed, but signed kernel modules are not required.

If there are any issues with the installation, the installer should notify you where the log is kept; the default location is usually:

[3]
Edit
Query
Report
Picha Stiles
Music Director
Answer # 2 #
  • Ensure the GPUs are Installed. Ensure that the lspci command is installed (which lists the PCI devices connected to the server): sudo apt-get -y install pciutils.
  • Disable Nouveau.
  • Prerequisites.
  • Close X Server.
  • Install Drivers Only.
  • Test the Nvidia Installation.
  • Restart X Server.
[2]
Edit
Query
Report
Farida vggme
CRUSHER TENDER
Answer # 3 #

C:\Windows\System32\DriverStore\FileRepository\nvdm*\nvidia-smi.exe

Where nvdm* is a directory that starts with nvdm and has an unknown number of characters after it.

Note: Older installs may have it in C:\Program Files\NVIDIA Corporation\NVSMI

You can move to that directory and then run nvidia-smi from there. However, the command prompt window will not persist, making it very difficult to see the information. Additionally it is challenging to determine what the nvdm* directory is as this changes and there are multiple directories of this format. To complicate matters, unlike linux, it can't be executed by the command line in a different path. It's better to find the exact location and create a shortcut that runs it in a periodic manner.

To find your exact location

Make a shortcut that runs nvidia-smi and refreshes periodically

For example, modify:

to

[0]
Edit
Query
Report
Galyn Ishii
Maintenance Of Way