Function trv::sys::get_gpu_count#
Defined in File monitor.cpp
Function Documentation#
-
int trv::sys::get_gpu_count(bool sys = false)#
Get the number of GPUs available.
Note
This function checks both the number of GPU devices present and the maximum number available for use as limited by the environmental variable
TRV_GPU_MAXNUM.- Parameters:
sys – If
true, return the number of GPU devices in the system, else return the number of GPU devices available for use.- Returns:
int Number of GPUs.