Skip to main content

set_current_device

Function set_current_device 

Source
pub fn set_current_device(i: usize)
Expand description

Pin this thread to a device. Server slots call it once per request; the worker pool propagates it into its threads, so a dispatch begun on card 1 does not finish on card 0.