Skip to main content

default_device

Function default_device 

Source
pub fn default_device() -> Result<Device>
Expand description

Chooses the default device based on the active backend.

With cuda feature: returns the default CUDA device (GPU 0). Without cuda feature: returns the default Flex (CPU) device.

Also reads MULTISCREEN_DEVICE env var for manual override.