Struct opencv::core::TargetArchs
source · pub struct TargetArchs { /* private fields */ }
Expand description
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
sourceimpl TargetArchs
impl TargetArchs
sourcepub fn built_with(feature_set: FeatureSet) -> Result<bool>
pub fn built_with(feature_set: FeatureSet) -> Result<bool>
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.
sourcepub fn has(major: i32, minor: i32) -> Result<bool>
pub fn has(major: i32, minor: i32) -> Result<bool>
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>
pub fn has_bin(major: i32, minor: i32) -> Result<bool>
pub fn has_equal_or_less_ptx(major: i32, minor: i32) -> Result<bool>
pub fn has_equal_or_greater(major: i32, minor: i32) -> Result<bool>
pub fn has_equal_or_greater_ptx(major: i32, minor: i32) -> Result<bool>
pub fn has_equal_or_greater_bin(major: i32, minor: i32) -> Result<bool>
Trait Implementations
sourceimpl Boxed for TargetArchs
impl Boxed for TargetArchs
sourceimpl Drop for TargetArchs
impl Drop for TargetArchs
sourceimpl TargetArchsTrait for TargetArchs
impl TargetArchsTrait for TargetArchs
fn as_raw_mut_TargetArchs(&mut self) -> *mut c_void
sourceimpl TargetArchsTraitConst for TargetArchs
impl TargetArchsTraitConst for TargetArchs
fn as_raw_TargetArchs(&self) -> *const c_void
impl Send for TargetArchs
Auto Trait Implementations
impl RefUnwindSafe for TargetArchs
impl !Sync for TargetArchs
impl Unpin for TargetArchs
impl UnwindSafe for TargetArchs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more