Run TUFLOW From a Batch-file: Difference between revisions

Content deleted Content added
Line 187:
Alternatively, using the % symbol twice in a row as shown below should result in a desired wildcard value.<br>
*-e 10%% (TUFLOW will search for 10%)
 
===Set Hardware===
The -hwgpu or -hwcpu switches can be used overwrite any "Hardware ==' command specified in the .tcf to GPU or CPU, respectively. This feature was first introduced for Build 2023-03-AB and is not available for TUFLOW builds prior to this.
 
These switches can be used in conjunction with the -nt (number of threads) or -pu (processing unit id) to provide full control over the hardware usage via the command line.
 
The following command could be used to run a model with CPU hardware on 8 threads:
<pre>TUFLOW_iSP_w64.exe -b -hwcpu -nt8 FS_Hardware_01.tcf </pre>
 
The following command could be used to run a model on GPU hardware using 2 devices (GPU 0 and GPU1):
<pre>TUFLOW_iSP_w64.exe -b -hwgpu -pu0 -pu1 FS_Hardware_01.tcf </pre>
 
==Advanced Batch Files==