opencv::core
pub fn get_device() -> Result<i32>
Returns the current device index set by cuda::setDevice or initialized by default.