[−][src]Struct opencv::core::TargetArchs
Class providing a set of static methods to check what NVIDIA* card architecture the CUDA module was built for.
According to the CUDA C Programming Guide Version 3.2: "PTX code produced for some specific compute capability can always be compiled to binary code of greater or equal compute capability".
Implementations
impl TargetArchs
[src]
pub fn as_raw_TargetArchs(&self) -> *const c_void
[src]
pub fn as_raw_mut_TargetArchs(&mut self) -> *mut c_void
[src]
impl TargetArchs
[src]
pub fn built_with(feature_set: FeatureSet) -> Result<bool>
[src]
The following method checks whether the module was built with the support of the given feature:
Parameters
- feature_set: Features to be checked. See :ocvcuda::FeatureSet.
pub fn has(major: i32, minor: i32) -> Result<bool>
[src]
There is a set of methods to check whether the module contains intermediate (PTX) or binary CUDA code for the given architecture(s):
Parameters
- major: Major compute capability version.
- minor: Minor compute capability version.
pub fn has_ptx(major: i32, minor: i32) -> Result<bool>
[src]
pub fn has_bin(major: i32, minor: i32) -> Result<bool>
[src]
pub fn has_equal_or_less_ptx(major: i32, minor: i32) -> Result<bool>
[src]
pub fn has_equal_or_greater(major: i32, minor: i32) -> Result<bool>
[src]
pub fn has_equal_or_greater_ptx(major: i32, minor: i32) -> Result<bool>
[src]
pub fn has_equal_or_greater_bin(major: i32, minor: i32) -> Result<bool>
[src]
Trait Implementations
impl Boxed for TargetArchs
[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 Drop for TargetArchs
[src]
impl Send for TargetArchs
[src]
impl TargetArchsTrait for TargetArchs
[src]
pub fn as_raw_TargetArchs(&self) -> *const c_void
[src]
pub fn as_raw_mut_TargetArchs(&mut self) -> *mut c_void
[src]
Auto Trait Implementations
impl RefUnwindSafe for TargetArchs
[src]
impl !Sync for TargetArchs
[src]
impl Unpin for TargetArchs
[src]
impl UnwindSafe for TargetArchs
[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>,