Class cv::cuda::TargetArchs#
Class providing a set of static methods to check what NVIDIA* card architecture the CUDA module was built for. View details
#include <opencv2/core/cuda.hpp>Collaboration diagram for cv::cuda::TargetArchs:
Detailed 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”.
Member Function Documentation#
builtWith()#
static bool cv::cuda::TargetArchs::builtWith(FeatureSet feature_set)
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.
has()#
static bool cv::cuda::TargetArchs::has(
int major,
int minor )
Python:
cv.cuda.TargetArchs.has(major, minor) -> retval
cv.cuda.TargetArchs_has(major, minor) -> retval
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.
hasBin()#
static bool cv::cuda::TargetArchs::hasBin(
int major,
int minor )
Python:
cv.cuda.TargetArchs.hasBin(major, minor) -> retval
cv.cuda.TargetArchs_hasBin(major, minor) -> retval
hasEqualOrGreater()#
static bool cv::cuda::TargetArchs::hasEqualOrGreater(
int major,
int minor )
Python:
cv.cuda.TargetArchs.hasEqualOrGreater(major, minor) -> retval
cv.cuda.TargetArchs_hasEqualOrGreater(major, minor) -> retval
hasEqualOrGreaterBin()#
static bool cv::cuda::TargetArchs::hasEqualOrGreaterBin(
int major,
int minor )
Python:
cv.cuda.TargetArchs.hasEqualOrGreaterBin(major, minor) -> retval
cv.cuda.TargetArchs_hasEqualOrGreaterBin(major, minor) -> retval
hasEqualOrGreaterPtx()#
static bool cv::cuda::TargetArchs::hasEqualOrGreaterPtx(
int major,
int minor )
Python:
cv.cuda.TargetArchs.hasEqualOrGreaterPtx(major, minor) -> retval
cv.cuda.TargetArchs_hasEqualOrGreaterPtx(major, minor) -> retval
hasEqualOrLessPtx()#
static bool cv::cuda::TargetArchs::hasEqualOrLessPtx(
int major,
int minor )
Python:
cv.cuda.TargetArchs.hasEqualOrLessPtx(major, minor) -> retval
cv.cuda.TargetArchs_hasEqualOrLessPtx(major, minor) -> retval
hasPtx()#
static bool cv::cuda::TargetArchs::hasPtx(
int major,
int minor )
Python:
cv.cuda.TargetArchs.hasPtx(major, minor) -> retval
cv.cuda.TargetArchs_hasPtx(major, minor) -> retval
Source file#
The documentation for this class was generated from the following file:
opencv2/core/cuda.hpp