5.4 Hardware

5.4.1 Command Status

Optional - The commands in this section are only required if running on Graphical Processing Unit (GPU) hardware, otherwise defaults will apply and the commands can be omitted from the .fvc file.

5.4.2 Description

Hardware commands affect how a simulation will utilise computer resources. Simulations can be run using the Central Processing Unit (CPU), or a combination of CPU and Graphical Processing Unit (GPU).

Hardware model implementations are summarised in Table 5.4, with links to the relevant implementation sections below. Hardware configuration commands are set via Table 5.5. In practice, these defaults are typically overridden at runtime through the use of Windows Batch or Linux Shell Script switches (See Section 3.3).

Table 5.4: Hardware Model Implementations
Model Implementation Description
CPU Run TUFLOW FV using CPU processing only.
GPU Run TUFLOW FV using a combination of CPU and GPU.
Table 5.5: Hardware Commands
Command Description
Hardware Optional - Run the simulation using Central Processing Unit (CPU) only or a combination of Central Processing Unit and Graphical Processing Unit (GPU).
Device ID Optional - Select the NVIDIA GPU Device ID to run a simulation on.

5.4.3 CPU

This hardware implementation is the default and will run TUFLOW FV on CPU processing only. CPU processing can be parallelised across multiple CPU threads which is configured using environment variables at runtime (See Section 3.3.3).

! Run on CPU Hardware
Hardware == CPU ! {CPU} | GPU

5.4.4 GPU

This hardware implementation enables access to GPU accelerated compute. It requires access to both a compatible NVIDIA graphics card (See Appendix B.6) and a TUFLOW FV GPU Module license.

! Run on GPU Hardware
Hardware == GPU ! {CPU} | GPU
GPU Device ID == 0 ! {0} NVIDIA Device ID