Hello, I am new to linux, and I just want to make sure if I use my Nvidia GPU (my laptop have intel gpu and nvidia gpu) at this moment, I found nvidia_smi command which should show data about it, but I am not fully sure because of this line: 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off.
Those “Off”-s confuse me, what those “Off”-s mean?
Output of nvidia-smi command:
Thu Aug 19 21:05:45 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01 Driver Version: 470.63.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 41C P8 N/A / N/A | 4MiB / 4042MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1535 G /usr/lib/Xorg 4MiB |
+-----------------------------------------------------------------------------+
I actually have no idea what Off means there,but the way to know if you are using the nvidia card is if the process appears there,for example,Dolphin Emulator when using nvidia card appears like this
nvidia-smi
Thu Aug 19 13:28:16 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01 Driver Version: 470.63.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 48C P0 N/A / N/A | 106MiB / 4040MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 57443 C+G dolphin-emu 101MiB |
+-----------------------------------------------------------------------------+
Thanks, yeah this is solution. Apparently I searched about this topic more and found detailed info about this output here: https://medium.com/analytics-vidhya/explained-output-of-nvidia-smi-utility-fc4fbee3b124
yeah I am stupid, but maybe this topic will be useful for somebody
If you have a laptop with intergrated graphics and a dedicated nvidia gpu and want to make certain that a program is running on the nvidia card launch it with the “prime-run” command. For example prime-run steam will launch steam on the nvidia card. I have read that the latest nvidia drivers don’t need the prime-run command but I still use it