Function trv::sys::is_gpu_enabled#

Function Documentation#

bool trv::sys::is_gpu_enabled()#

Check if GPU mode is enabled.

Note

This function checks if at least one GPU is available for use. It also checks for any override by the environmental variable TRV_GPU_MODE: when it is set to false, no, off or 0, the function will return false.

Returns:

{true, false}