oneflow.cuda.device_count

oneflow.cuda.device_count()int

Returns the number of GPUs available.