提供一组静态方法来检查 CUDA 模块构建所针对的 NVIDIA* 卡架构的类。 更多...
#include <opencv2/core/cuda.hpp>
提供一组静态方法来检查 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 |
此类的文档是从以下文件生成的