提供查询指定GPU属性功能的类。更多信息...
#include <opencv2/core/cuda.hpp>
◆ ComputeMode
枚举器 |
---|
ComputeModeDefault | 默认计算模式(多个线程可以使用此设备上的cudaSetDevice)
|
ComputeModeExclusive | 计算独占线程模式(一个进程中的单个线程将能够使用此设备上的cudaSetDevice)
|
ComputeModeProhibited | 计算禁止模式(没有线程可以使用此设备上的cudaSetDevice)
|
ComputeModeExclusiveProcess | 计算独占进程模式(一个进程中的多个线程将能够使用此设备上的cudaSetDevice)
|
◆ DeviceInfo() [1/2]
cv::cuda::DeviceInfo::DeviceInfo |
( |
| ) |
|
Python |
---|
| cv.cuda.DeviceInfo( | | ) -> | <cuda_DeviceInfo对象> |
| cv.cuda.DeviceInfo( | device_id | ) -> | <cuda_DeviceInfo对象> |
◆ DeviceInfo() [2/2]
cv::cuda::DeviceInfo::DeviceInfo |
( |
int |
device_id | ) |
|
Python |
---|
| cv.cuda.DeviceInfo( | | ) -> | <cuda_DeviceInfo对象> |
| cv.cuda.DeviceInfo( | device_id | ) -> | <cuda_DeviceInfo对象> |
构造函数。
- 参数
-
device_id | CUDA设备的系统索引,从0开始。 |
为指定设备构建DeviceInfo对象。如果省略device_id参数,则为当前设备构建对象。
◆ asyncEngineCount()
int cv::cuda::DeviceInfo::asyncEngineCount |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.asyncEngineCount( | | ) -> | retval |
◆ canMapHostMemory()
bool cv::cuda::DeviceInfo::canMapHostMemory |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.canMapHostMemory( | | ) -> | retval |
设备可以使用 cudaHostAlloc/cudaHostGetDevicePointer 映射主机内存
◆ clockRate()
int cv::cuda::DeviceInfo::clockRate |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.clockRate( | | ) -> | retval |
◆ computeMode()
Python |
---|
| cv.cuda.DeviceInfo.computeMode( | | ) -> | retval |
◆ concurrentKernels()
bool cv::cuda::DeviceInfo::concurrentKernels |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.concurrentKernels( | | ) -> | retval |
◆ deviceID()
int cv::cuda::DeviceInfo::deviceID |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.deviceID( | | ) -> | retval |
◆ ECCEnabled()
bool cv::cuda::DeviceInfo::ECCEnabled |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.ECCEnabled( | | ) -> | retval |
◆ freeMemory()
size_t cv::cuda::DeviceInfo::freeMemory |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.freeMemory( | | ) -> | retval |
◆ integrated()
bool cv::cuda::DeviceInfo::integrated |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.integrated( | | ) -> | retval |
◆ isCompatible()
bool cv::cuda::DeviceInfo::isCompatible |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.isCompatible( | | ) -> | retval |
检查 CUDA 模块和设备的兼容性。
该函数返回真表示CUDA模块可以在指定的设备上运行,否则返回假。
◆ kernelExecTimeoutEnabled()
bool cv::cuda::DeviceInfo::kernelExecTimeoutEnabled |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.kernelExecTimeoutEnabled( | | ) -> | retval |
◆ l2CacheSize()
int cv::cuda::DeviceInfo::l2CacheSize |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.l2CacheSize( | | ) -> | retval |
◆ majorVersion()
int cv::cuda::DeviceInfo::majorVersion |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.majorVersion( | | ) -> | retval |
◆ maxGridSize()
Vec3i cv::cuda::DeviceInfo::maxGridSize |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxGridSize( | | ) -> | retval |
◆ maxSurface1D()
int cv::cuda::DeviceInfo::maxSurface1D |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxSurface1D( | | ) -> | retval |
◆ maxSurface1DLayered()
Vec2i cv::cuda::DeviceInfo::maxSurface1DLayered |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxSurface1DLayered( | | ) -> | retval |
◆ maxSurface2D()
Vec2i cv::cuda::DeviceInfo::maxSurface2D |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxSurface2D( | | ) -> | retval |
◆ maxSurface2DLayered()
Vec3i cv::cuda::DeviceInfo::maxSurface2DLayered |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxSurface2DLayered( | | ) -> | retval |
◆ maxSurface3D()
Vec3i cv::cuda::DeviceInfo::maxSurface3D |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxSurface3D( | | ) -> | retval |
◆ maxSurfaceCubemap()
int cv::cuda::DeviceInfo::maxSurfaceCubemap |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxSurfaceCubemap( | | ) -> | retval |
◆ maxSurfaceCubemapLayered()
Vec2i cv::cuda::DeviceInfo::maxSurfaceCubemapLayered |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxSurfaceCubemapLayered( | | ) -> | retval |
◆ maxTexture1D()
int cv::cuda::DeviceInfo::maxTexture1D |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture1D( | | ) -> | retval |
◆ maxTexture1DLayered()
Vec2i cv::cuda::DeviceInfo::maxTexture1DLayered |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture1DLayered( | | ) -> | retval |
◆ maxTexture1DLinear()
int cv::cuda::DeviceInfo::maxTexture1DLinear |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture1DLinear( | | ) -> | retval |
◆ maxTexture1DMipmap()
int cv::cuda::DeviceInfo::maxTexture1DMipmap |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture1DMipmap( | | ) -> | retval |
◆ maxTexture2D()
Vec2i cv::cuda::DeviceInfo::maxTexture2D |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture2D( | | ) -> | retval |
◆ maxTexture2DGather()
Vec2i cv::cuda::DeviceInfo::maxTexture2DGather |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture2DGather( | | ) -> | retval |
◆ maxTexture2DLayered()
Vec3i cv::cuda::DeviceInfo::maxTexture2DLayered |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture2DLayered( | | ) -> | retval |
◆ maxTexture2DLinear()
Vec3i cv::cuda::DeviceInfo::maxTexture2DLinear |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture2DLinear( | | ) -> | retval |
绑定到对齐内存的二维纹理的最大尺寸(宽度、高度、间距)
◆ maxTexture2DMipmap()
Vec2i cv::cuda::DeviceInfo::maxTexture2DMipmap |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture2DMipmap( | | ) -> | retval |
◆ maxTexture3D()
Vec3i cv::cuda::DeviceInfo::maxTexture3D |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTexture3D( | | ) -> | retval |
◆ maxTextureCubemap()
int cv::cuda::DeviceInfo::maxTextureCubemap |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTextureCubemap( | | ) -> | retval |
◆ maxTextureCubemapLayered()
Vec2i cv::cuda::DeviceInfo::maxTextureCubemapLayered |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxTextureCubemapLayered( | | ) -> | retval |
◆ maxThreadsDim()
Vec3i cv::cuda::DeviceInfo::maxThreadsDim |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxThreadsDim( | | ) -> | retval |
◆ maxThreadsPerBlock()
int cv::cuda::DeviceInfo::maxThreadsPerBlock |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxThreadsPerBlock( | | ) -> | retval |
◆ maxThreadsPerMultiProcessor()
int cv::cuda::DeviceInfo::maxThreadsPerMultiProcessor |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.maxThreadsPerMultiProcessor( | | ) -> | retval |
◆ memoryBusWidth()
int cv::cuda::DeviceInfo::memoryBusWidth |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.memoryBusWidth( | | ) -> | retval |
◆ memoryClockRate()
int cv::cuda::DeviceInfo::memoryClockRate |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.memoryClockRate( | | ) -> | retval |
◆ memPitch()
size_t cv::cuda::DeviceInfo::memPitch |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.memPitch( | | ) -> | retval |
◆ minorVersion()
int cv::cuda::DeviceInfo::minorVersion |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.minorVersion( | | ) -> | retval |
◆ multiProcessorCount()
int cv::cuda::DeviceInfo::multiProcessorCount |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.multiProcessorCount( | | ) -> | retval |
◆ name()
const char * cv::cuda::DeviceInfo::name |
( |
| ) |
const |
◆ pciBusID()
int cv::cuda::DeviceInfo::pciBusID |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.pciBusID( | | ) -> | retval |
◆ pciDeviceID()
int cv::cuda::DeviceInfo::pciDeviceID |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.pciDeviceID( | | ) -> | retval |
◆ pciDomainID()
int cv::cuda::DeviceInfo::pciDomainID |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.pciDomainID( | | ) -> | retval |
◆ queryMemory()
void cv::cuda::DeviceInfo::queryMemory |
( |
size_t & |
totalMemory, |
|
|
size_t & |
freeMemory |
|
) |
| const |
Python |
---|
| cv.cuda.DeviceInfo.queryMemory( | totalMemory, freeMemory | ) -> | None |
◆ regsPerBlock()
int cv::cuda::DeviceInfo::regsPerBlock |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.regsPerBlock( | | ) -> | retval |
◆ sharedMemPerBlock()
size_t cv::cuda::DeviceInfo::sharedMemPerBlock |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.sharedMemPerBlock( | | ) -> | retval |
◆ supports()
bool cv::cuda::DeviceInfo::supports |
( |
FeatureSet |
feature_set | ) |
const |
提供关于CUDA功能支持的信息。
- 参数
-
此函数如果设备具有指定的CUDA特性则返回true。否则返回false
◆ surfaceAlignment()
size_t cv::cuda::DeviceInfo::surfaceAlignment |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.surfaceAlignment( | | ) -> | retval |
◆ tccDriver()
bool cv::cuda::DeviceInfo::tccDriver |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.tccDriver( | | ) -> | retval |
如果设备是使用TCC驱动程序的Tesla设备,则为真,否则为假
◆ textureAlignment()
size_t cv::cuda::DeviceInfo::textureAlignment |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.textureAlignment( | | ) -> | retval |
◆ texturePitchAlignment()
size_t cv::cuda::DeviceInfo::texturePitchAlignment |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.texturePitchAlignment( | | ) -> | retval |
◆ totalConstMem()
size_t cv::cuda::DeviceInfo::totalConstMem |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.totalConstMem( | | ) -> | retval |
◆ totalGlobalMem()
size_t cv::cuda::DeviceInfo::totalGlobalMem |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.totalGlobalMem( | | ) -> | retval |
◆ totalMemory()
size_t cv::cuda::DeviceInfo::totalMemory |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.totalMemory( | | ) -> | retval |
◆ unifiedAddressing()
bool cv::cuda::DeviceInfo::unifiedAddressing |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.unifiedAddressing( | | ) -> | retval |
◆ warpSize()
int cv::cuda::DeviceInfo::warpSize |
( |
| ) |
const |
Python |
---|
| cv.cuda.DeviceInfo.warpSize( | | ) -> | retval |
该类的文档是从以下文件生成的