提供查詢指定 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 模組可以在指定裝置上執行,則此函式返回 true。否則,它返回 false。
◆ 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 |
繫結到帶間距記憶體的 2D 紋理的最大尺寸(寬度、高度、間距)
◆ 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 | ) -> | 無 |
◆ 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 裝置,則為 true;否則為 false
◆ 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 |
此類的文件是從以下檔案生成的