get_n_gpus


Description:

[ CCode ( cname = "xapp_gpu_offload_helper_get_n_gpus" ) ]
[ Version ( since = "2.6" ) ]
public int get_n_gpus ()

Gets the number of GPUs noticed by Switcheroo.

Parameters:

this

The GpuOffloadHelper.

Returns:

the total number of GPUs. A return value larger than 1 implies there are offloadable GPUs available.