OpenCV 4.11.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::cuda::TargetArchs 类参考

提供一组静态方法来检查 CUDA 模块构建所针对的 NVIDIA* 卡架构的类。 更多...

#include <opencv2/core/cuda.hpp>

cv::cuda::TargetArchs 的协作图

静态公共成员函数

静态 bool builtWith (FeatureSet feature_set)
 以下方法检查模块是否构建了对给定功能的支持
 
静态 bool has (int major, int minor)
 有一组方法可以检查模块是否包含给定架构的中间 (PTX) 或二进制 CUDA 代码
 
静态 bool hasBin (int major, int minor)
 
静态 bool hasEqualOrGreater (int major, int minor)
 
静态 bool hasEqualOrGreaterBin (int major, int minor)
 
静态 bool hasEqualOrGreaterPtx (int major, int minor)
 
静态 bool hasEqualOrLessPtx (int major, int minor)
 
静态 bool hasPtx (int major, int minor)
 

详细描述

提供一组静态方法来检查 CUDA 模块构建所针对的 NVIDIA* 卡架构的类。

根据 CUDA C 编程指南 3.2 版:“为某些特定计算能力生成的 PTX 代码始终可以编译为大于或等于计算能力的二进制代码”。

成员函数文档

◆ builtWith()

静态 bool cv::cuda::TargetArchs::builtWith ( FeatureSet feature_set)
静态

以下方法检查模块是否构建了对给定功能的支持

参数
feature_set要检查的功能。参见:ocvcuda::FeatureSet。

◆ has()

静态 bool cv::cuda::TargetArchs::has ( int major,
int minor )
静态
Python
cv.cuda.TargetArchs.has(major, minor) -> retval
cv.cuda.TargetArchs_has(major, minor) -> retval

有一组方法可以检查模块是否包含给定架构的中间 (PTX) 或二进制 CUDA 代码

参数
major主计算能力版本。
minor次计算能力版本。

◆ hasBin()

静态 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()

静态 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()

静态 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()

静态 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()

静态 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()

静态 bool cv::cuda::TargetArchs::hasPtx ( int major,
int minor )
静态
Python
cv.cuda.TargetArchs.hasPtx(major, minor) -> retval
cv.cuda.TargetArchs_hasPtx(major, minor) -> retval

此类的文档是从以下文件生成的