提供一组静态方法来检查 CUDA 模块构建的目标 NVIDIA* 卡架构的类。 更多...
#include <opencv2/core/cuda.hpp>
提供一组静态方法来检查 CUDA 模块构建的目标 NVIDIA* 卡架构的类。
根据 CUDA C 编程指南版本 3.2:“为某些特定计算能力生成的 PTX 代码始终可以编译为大于或等于该计算能力的二进制代码”。
◆ builtWith()
static bool cv::cuda::TargetArchs::builtWith |
( |
FeatureSet |
feature_set | ) |
|
|
static |
以下方法检查模块是否支持给定功能而构建。
- 参数
-
feature_set | 要检查的功能。请参阅:ocvcuda::FeatureSet。 |
◆ has()
static bool cv::cuda::TargetArchs::has |
( |
int |
major, |
|
|
int |
minor |
|
) |
| |
|
static |
Python |
---|
| cv.cuda.TargetArchs.has( | major, minor | ) -> | retval |
| cv.cuda.TargetArchs_has( | major, minor | ) -> | retval |
有一组方法可以检查模块是否包含针对给定架构的中间 (PTX) 或二进制 CUDA 代码。
- 参数
-
major | 主计算能力版本。 |
minor | 次要计算能力版本。 |
◆ hasBin()
static bool cv::cuda::TargetArchs::hasBin |
( |
int |
major, |
|
|
int |
minor |
|
) |
| |
|
static |
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 |
|
) |
| |
|
static |
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 |
|
) |
| |
|
static |
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 |
|
) |
| |
|
static |
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 |
|
) |
| |
|
static |
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 |
|
) |
| |
|
static |
Python |
---|
| cv.cuda.TargetArchs.hasPtx( | major, minor | ) -> | retval |
| cv.cuda.TargetArchs_hasPtx( | major, minor | ) -> | retval |
此类的文档从以下文件生成