Function trv::sys::is_gpu_enabled#
Defined in File monitor.cpp
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 tofalse,no,offor0, the function will returnfalse.- Returns:
{
true,false}