Difference between revisions of "DOS GPU Usage"

From Tuflow
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<ol>
 
<ol>
 
<li> Launch the DOS Command Prompt from the Run window (press Win+R on your keyboard to open "run" then type '''<tt>cmd</tt>''').<br>
 
<li> Launch the DOS Command Prompt from the Run window (press Win+R on your keyboard to open "run" then type '''<tt>cmd</tt>''').<br>
[[File: Nvidia-smi 001.png|400px]]<br>
+
[[File: DOS_GPU_Usage_Run_Window_01a.png]]<br>
 
<li> Type '''<tt>nvidia-smi -l 10</tt>''' in the DOS window and press enter. This will instruct nvidia-smi to refresh every 10 seconds.<br>
 
<li> Type '''<tt>nvidia-smi -l 10</tt>''' in the DOS window and press enter. This will instruct nvidia-smi to refresh every 10 seconds.<br>
[[File:Nvidia-smi 1a.jpg|700px]]<br>
+
[[File: DOS_GPU_Usage_nvidia_smi_01a.png]]<br>
 
<li> Review the nvidia-smi usage summary.<br>
 
<li> Review the nvidia-smi usage summary.<br>
[[File:Nvidia-smi 1b.jpg|700px]]<br>
+
[[File: DOS_GPU_Usage_nvidia_summary_01a.png]]<br>
 
</ol>
 
</ol>
  
Line 17: Line 17:
 
Other troubleshooting tips:
 
Other troubleshooting tips:
 
* Ensure the simulation has entered the calculation loop and is not currently in the initialisation phase (which is performed on the CPU and not GPU)
 
* Ensure the simulation has entered the calculation loop and is not currently in the initialisation phase (which is performed on the CPU and not GPU)
* Check TUFLOW is running on a GPU device by checking the console title includes the <b>GPU Devices</b> text. If this text is not included, then the command "<tt>Hardware == GPU</tt>" was most likely not found in the TCF
+
* Check TUFLOW is running on a GPU device by checking the console title includes the <b>GPU Devices</b> text. If this text is not included, then the command "<tt><font color="blue">Hardware </font><font color="red">==</font> GPU</tt>" was most likely not found in the TCF
: [[File: GPU_devices_console.PNG]]
+
: [[File: DOS_GPU_Usage_GPU_Device_count_01a.png]]

Latest revision as of 15:50, 18 December 2024

Nvidia-smi (also NVSMI) provides monitoring and management capabilities for each of NVIDIA's Tesla, Quadro, GRID and GeForce GPU device from Fermi and higher architecture families. The following steps can be used to access nVidia-smi and review real-time GPU usage statistics for TUFLOW simulations:

Accessing nvidia-smi to review GPU Usage

  1. Launch the DOS Command Prompt from the Run window (press Win+R on your keyboard to open "run" then type cmd).
    DOS GPU Usage Run Window 01a.png
  2. Type nvidia-smi -l 10 in the DOS window and press enter. This will instruct nvidia-smi to refresh every 10 seconds.
    DOS GPU Usage nvidia smi 01a.png
  3. Review the nvidia-smi usage summary.
    DOS GPU Usage nvidia summary 01a.png

What to do if GPU utilisation = 0% when running TUFLOW HPC (when using the GPU Module)

A common cause of 0% utilisation is if the calculations have accidentally been paused by activating 'Quick Edit' mode in the console. Quick edit mode was introduced in Windows 10 (in Windows not TUFLOW) and is initiated if the curser clicks somewhere on the DOS window while a TUFLOW simulation is running. Quick Edit mode can be deactivated to avoid this issue.

Other troubleshooting tips:

  • Ensure the simulation has entered the calculation loop and is not currently in the initialisation phase (which is performed on the CPU and not GPU)
  • Check TUFLOW is running on a GPU device by checking the console title includes the GPU Devices text. If this text is not included, then the command "Hardware == GPU" was most likely not found in the TCF
DOS GPU Usage GPU Device count 01a.png