Skip to main content

active_device

Function active_device 

Source
pub fn active_device() -> Option<String>
Expand description

The card the selected GPU backend runs on, for status reports: “ / CUDA” or “ / Vulkan” (DX12, …); None on the CPU and on Apple’s Metal path. Brings the backend up when it is selected and not up yet, as the first request would.