[−][src]Struct opencv::core::DeviceInfo
Class providing functionality for querying the specified GPU properties.
Implementations
impl DeviceInfo
[src]
pub fn as_raw_DeviceInfo(&self) -> *const c_void
[src]
pub fn as_raw_mut_DeviceInfo(&mut self) -> *mut c_void
[src]
impl DeviceInfo
[src]
pub fn default() -> Result<DeviceInfo>
[src]
creates DeviceInfo object for the current GPU
pub fn new(device_id: i32) -> Result<DeviceInfo>
[src]
The constructors.
Parameters
- device_id: System index of the CUDA device starting with 0.
Constructs the DeviceInfo object for the specified device. If device_id parameter is missed, it constructs an object for the current device.
Trait Implementations
impl Boxed for DeviceInfo
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl DeviceInfoTrait for DeviceInfo
[src]
pub fn as_raw_DeviceInfo(&self) -> *const c_void
[src]
pub fn as_raw_mut_DeviceInfo(&mut self) -> *mut c_void
[src]
pub fn device_id(&self) -> Result<i32>
[src]
pub fn name(&self) -> Result<String>
[src]
pub fn total_global_mem(&self) -> Result<size_t>
[src]
pub fn shared_mem_per_block(&self) -> Result<size_t>
[src]
pub fn regs_per_block(&self) -> Result<i32>
[src]
pub fn warp_size(&self) -> Result<i32>
[src]
pub fn mem_pitch(&self) -> Result<size_t>
[src]
pub fn max_threads_per_block(&self) -> Result<i32>
[src]
pub fn max_threads_dim(&self) -> Result<Vec3i>
[src]
pub fn max_grid_size(&self) -> Result<Vec3i>
[src]
pub fn clock_rate(&self) -> Result<i32>
[src]
pub fn total_const_mem(&self) -> Result<size_t>
[src]
pub fn major_version(&self) -> Result<i32>
[src]
pub fn minor_version(&self) -> Result<i32>
[src]
pub fn texture_alignment(&self) -> Result<size_t>
[src]
pub fn texture_pitch_alignment(&self) -> Result<size_t>
[src]
pub fn multi_processor_count(&self) -> Result<i32>
[src]
pub fn kernel_exec_timeout_enabled(&self) -> Result<bool>
[src]
pub fn integrated(&self) -> Result<bool>
[src]
pub fn can_map_host_memory(&self) -> Result<bool>
[src]
pub fn compute_mode(&self) -> Result<DeviceInfo_ComputeMode>
[src]
pub fn max_texture1_d(&self) -> Result<i32>
[src]
pub fn max_texture1_d_mipmap(&self) -> Result<i32>
[src]
pub fn max_texture1_d_linear(&self) -> Result<i32>
[src]
pub fn max_texture_2d(&self) -> Result<Vec2i>
[src]
pub fn max_texture2_d_mipmap(&self) -> Result<Vec2i>
[src]
pub fn max_texture2_d_linear(&self) -> Result<Vec3i>
[src]
pub fn max_texture2_d_gather(&self) -> Result<Vec2i>
[src]
pub fn max_texture_3d(&self) -> Result<Vec3i>
[src]
pub fn max_texture_cubemap(&self) -> Result<i32>
[src]
pub fn max_texture1_d_layered(&self) -> Result<Vec2i>
[src]
pub fn max_texture2_d_layered(&self) -> Result<Vec3i>
[src]
pub fn max_texture_cubemap_layered(&self) -> Result<Vec2i>
[src]
pub fn max_surface1_d(&self) -> Result<i32>
[src]
pub fn max_surface_2d(&self) -> Result<Vec2i>
[src]
pub fn max_surface_3d(&self) -> Result<Vec3i>
[src]
pub fn max_surface1_d_layered(&self) -> Result<Vec2i>
[src]
pub fn max_surface2_d_layered(&self) -> Result<Vec3i>
[src]
pub fn max_surface_cubemap(&self) -> Result<i32>
[src]
pub fn max_surface_cubemap_layered(&self) -> Result<Vec2i>
[src]
pub fn surface_alignment(&self) -> Result<size_t>
[src]
pub fn concurrent_kernels(&self) -> Result<bool>
[src]
pub fn ecc_enabled(&self) -> Result<bool>
[src]
pub fn pci_bus_id(&self) -> Result<i32>
[src]
pub fn pci_device_id(&self) -> Result<i32>
[src]
pub fn pci_domain_id(&self) -> Result<i32>
[src]
pub fn tcc_driver(&self) -> Result<bool>
[src]
pub fn async_engine_count(&self) -> Result<i32>
[src]
pub fn unified_addressing(&self) -> Result<bool>
[src]
pub fn memory_clock_rate(&self) -> Result<i32>
[src]
pub fn memory_bus_width(&self) -> Result<i32>
[src]
pub fn l2_cache_size(&self) -> Result<i32>
[src]
pub fn max_threads_per_multi_processor(&self) -> Result<i32>
[src]
pub fn query_memory(
&self,
total_memory: &mut size_t,
free_memory: &mut size_t
) -> Result<()>
[src]
&self,
total_memory: &mut size_t,
free_memory: &mut size_t
) -> Result<()>
pub fn free_memory(&self) -> Result<size_t>
[src]
pub fn total_memory(&self) -> Result<size_t>
[src]
pub fn supports(&self, feature_set: FeatureSet) -> Result<bool>
[src]
pub fn is_compatible(&self) -> Result<bool>
[src]
impl Drop for DeviceInfo
[src]
impl Send for DeviceInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceInfo
[src]
impl !Sync for DeviceInfo
[src]
impl Unpin for DeviceInfo
[src]
impl UnwindSafe for DeviceInfo
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,