HPC Running and Converting Models: Difference between revisions

Content deleted Content added
Line 18:
 
= Running HPC on Multiple GPU Devices =
Much like HPC can be run across multiple CPU processors, HPC can be run across multiple GPU cards. TheModels followingcan TCF command canalso be usedinstructed to setrun theon numbera ofspecific GPU devices and which devices to usecard.<br>
If a machine only has a single GPU card, the GPU Device ID should be 0, this is a default. If a second GPU card was added, the Device ID would be 1 and so on. The GPU Device IDIDs can be checked by reviewing the machines ''Device Manager''.<br>
The most common is to specify the GPU card ID in the batch file / command line by using the -pu<id> argument.<br>
Example below will run single simulation across the first and second GPU card (ID 0 and 1).
<pre>"TUFLOW_iSP_w64.exe" -pu0 -pu1 "M01_5m_001.tcf"</pre>
Example below will run single simulation on the fourth GPU card (ID 3).
<pre>"TUFLOW_iSP_w64.exe" -pu3 "M01_5m_001.tcf"</pre>
 
Alternatively, the following TCF command can be used to set the number of GPU devices and which devices to use.<br>
<font color="blue"><tt>GPU Device IDs </tt></font> <font color="red"><tt>==</tt></font><tt> 0, 1 </tt> <font color="green"><tt> !This command instructs TUFLOW to run the model on GPU Device 0 and GPU Device 1.</tt></font><br>
If a machine only has a single GPU card, the GPU Device ID should be 0, this is a default. If a second GPU card was added, the Device ID would be 1 and so on. The GPU Device ID can be checked by reviewing the machines ''Device Manager''.<br>
Alternatively, the GPU devices can be specified in the batch file / command line by using the -pu<id> argument. Note that multiple arguments are required to run on multiple GPU cards, e.g. -pu0 -pu1 and so on.<br>
If both control file and command line are used to specify devices, the command line option will prevail.