OpenCV  4.1.0
Open Source Computer Vision
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
cv::ocl::Device Class Reference

#include <opencv2/core/ocl.hpp>

Public Types

enum  {
  TYPE_DEFAULT = (1 << 0),
  TYPE_CPU = (1 << 1),
  TYPE_GPU = (1 << 2),
  TYPE_ACCELERATOR = (1 << 3),
  TYPE_DGPU = TYPE_GPU + (1 << 16),
  TYPE_IGPU = TYPE_GPU + (1 << 17),
  TYPE_ALL = 0xFFFFFFFF
}
 
enum  {
  FP_DENORM =(1 << 0),
  FP_INF_NAN =(1 << 1),
  FP_ROUND_TO_NEAREST =(1 << 2),
  FP_ROUND_TO_ZERO =(1 << 3),
  FP_ROUND_TO_INF =(1 << 4),
  FP_FMA =(1 << 5),
  FP_SOFT_FLOAT =(1 << 6),
  FP_CORRECTLY_ROUNDED_DIVIDE_SQRT =(1 << 7)
}
 
enum  {
  EXEC_KERNEL =(1 << 0),
  EXEC_NATIVE_KERNEL =(1 << 1)
}
 
enum  {
  NO_CACHE =0,
  READ_ONLY_CACHE =1,
  READ_WRITE_CACHE =2
}
 
enum  {
  NO_LOCAL_MEM =0,
  LOCAL_IS_LOCAL =1,
  LOCAL_IS_GLOBAL =2
}
 
enum  {
  UNKNOWN_VENDOR =0,
  VENDOR_AMD =1,
  VENDOR_INTEL =2,
  VENDOR_NVIDIA =3
}
 

Public Member Functions

 Device ()
 
 Device (void *d)
 
 Device (const Device &d)
 
 ~Device ()
 
int addressBits () const
 
bool available () const
 
bool compilerAvailable () const
 
int deviceVersionMajor () const
 
int deviceVersionMinor () const
 
int doubleFPConfig () const
 
String driverVersion () const
 
bool endianLittle () const
 
bool errorCorrectionSupport () const
 
int executionCapabilities () const
 
String extensions () const
 
int globalMemCacheLineSize () const
 
size_t globalMemCacheSize () const
 
int globalMemCacheType () const
 
size_t globalMemSize () const
 
int halfFPConfig () const
 
bool hostUnifiedMemory () const
 
size_t image2DMaxHeight () const
 
size_t image2DMaxWidth () const
 
size_t image3DMaxDepth () const
 
size_t image3DMaxHeight () const
 
size_t image3DMaxWidth () const
 
uint imageBaseAddressAlignment () const
 
bool imageFromBufferSupport () const
 
size_t imageMaxArraySize () const
 
size_t imageMaxBufferSize () const
 
uint imagePitchAlignment () const
 
bool imageSupport () const
 
bool intelSubgroupsSupport () const
 deprecated, use isExtensionSupported() method (probably with "cl_khr_subgroups" value)
 
bool isAMD () const
 
bool isExtensionSupported (const String &extensionName) const
 
bool isIntel () const
 
bool isNVidia () const
 
bool linkerAvailable () const
 
size_t localMemSize () const
 
int localMemType () const
 
int maxClockFrequency () const
 
int maxComputeUnits () const
 
int maxConstantArgs () const
 
size_t maxConstantBufferSize () const
 
size_t maxMemAllocSize () const
 
size_t maxParameterSize () const
 
int maxReadImageArgs () const
 
int maxSamplers () const
 
size_t maxWorkGroupSize () const
 
int maxWorkItemDims () const
 
void maxWorkItemSizes (size_t *) const
 
int maxWriteImageArgs () const
 
int memBaseAddrAlign () const
 
String name () const
 
int nativeVectorWidthChar () const
 
int nativeVectorWidthDouble () const
 
int nativeVectorWidthFloat () const
 
int nativeVectorWidthHalf () const
 
int nativeVectorWidthInt () const
 
int nativeVectorWidthLong () const
 
int nativeVectorWidthShort () const
 
String OpenCL_C_Version () const
 
String OpenCLVersion () const
 
Deviceoperator= (const Device &d)
 
int preferredVectorWidthChar () const
 
int preferredVectorWidthDouble () const
 
int preferredVectorWidthFloat () const
 
int preferredVectorWidthHalf () const
 
int preferredVectorWidthInt () const
 
int preferredVectorWidthLong () const
 
int preferredVectorWidthShort () const
 
size_t printfBufferSize () const
 
size_t profilingTimerResolution () const
 
void * ptr () const
 
void set (void *d)
 
int singleFPConfig () const
 
int type () const
 
int vendorID () const
 
String vendorName () const
 
String version () const
 

Static Public Member Functions

static const DevicegetDefault ()
 

Protected Attributes

Impl * p
 

Member Enumeration Documentation

anonymous enum
Enumerator
TYPE_DEFAULT 
TYPE_CPU 
TYPE_GPU 
TYPE_ACCELERATOR 
TYPE_DGPU 
TYPE_IGPU 
TYPE_ALL 
anonymous enum
Enumerator
FP_DENORM 
FP_INF_NAN 
FP_ROUND_TO_NEAREST 
FP_ROUND_TO_ZERO 
FP_ROUND_TO_INF 
FP_FMA 
FP_SOFT_FLOAT 
FP_CORRECTLY_ROUNDED_DIVIDE_SQRT 
anonymous enum
Enumerator
EXEC_KERNEL 
EXEC_NATIVE_KERNEL 
anonymous enum
Enumerator
NO_CACHE 
READ_ONLY_CACHE 
READ_WRITE_CACHE 
anonymous enum
Enumerator
NO_LOCAL_MEM 
LOCAL_IS_LOCAL 
LOCAL_IS_GLOBAL 
anonymous enum
Enumerator
UNKNOWN_VENDOR 
VENDOR_AMD 
VENDOR_INTEL 
VENDOR_NVIDIA 

Constructor & Destructor Documentation

cv::ocl::Device::Device ( )
Python:
<ocl_Device object>=cv.ocl_Device()
cv::ocl::Device::Device ( void *  d)
explicit
Python:
<ocl_Device object>=cv.ocl_Device()
cv::ocl::Device::Device ( const Device d)
Python:
<ocl_Device object>=cv.ocl_Device()
cv::ocl::Device::~Device ( )

Member Function Documentation

int cv::ocl::Device::addressBits ( ) const
Python:
retval=cv.ocl_Device.addressBits()
bool cv::ocl::Device::available ( ) const
Python:
retval=cv.ocl_Device.available()
bool cv::ocl::Device::compilerAvailable ( ) const
Python:
retval=cv.ocl_Device.compilerAvailable()
int cv::ocl::Device::deviceVersionMajor ( ) const
Python:
retval=cv.ocl_Device.deviceVersionMajor()
int cv::ocl::Device::deviceVersionMinor ( ) const
Python:
retval=cv.ocl_Device.deviceVersionMinor()
int cv::ocl::Device::doubleFPConfig ( ) const
Python:
retval=cv.ocl_Device.doubleFPConfig()
String cv::ocl::Device::driverVersion ( ) const
Python:
retval=cv.ocl_Device.driverVersion()
bool cv::ocl::Device::endianLittle ( ) const
Python:
retval=cv.ocl_Device.endianLittle()
bool cv::ocl::Device::errorCorrectionSupport ( ) const
Python:
retval=cv.ocl_Device.errorCorrectionSupport()
int cv::ocl::Device::executionCapabilities ( ) const
Python:
retval=cv.ocl_Device.executionCapabilities()
String cv::ocl::Device::extensions ( ) const
Python:
retval=cv.ocl_Device.extensions()
static const Device& cv::ocl::Device::getDefault ( )
static
Python:
retval=cv.ocl.Device_getDefault()
int cv::ocl::Device::globalMemCacheLineSize ( ) const
Python:
retval=cv.ocl_Device.globalMemCacheLineSize()
size_t cv::ocl::Device::globalMemCacheSize ( ) const
Python:
retval=cv.ocl_Device.globalMemCacheSize()
int cv::ocl::Device::globalMemCacheType ( ) const
Python:
retval=cv.ocl_Device.globalMemCacheType()
size_t cv::ocl::Device::globalMemSize ( ) const
Python:
retval=cv.ocl_Device.globalMemSize()
int cv::ocl::Device::halfFPConfig ( ) const
Python:
retval=cv.ocl_Device.halfFPConfig()
bool cv::ocl::Device::hostUnifiedMemory ( ) const
Python:
retval=cv.ocl_Device.hostUnifiedMemory()
size_t cv::ocl::Device::image2DMaxHeight ( ) const
Python:
retval=cv.ocl_Device.image2DMaxHeight()
size_t cv::ocl::Device::image2DMaxWidth ( ) const
Python:
retval=cv.ocl_Device.image2DMaxWidth()
size_t cv::ocl::Device::image3DMaxDepth ( ) const
Python:
retval=cv.ocl_Device.image3DMaxDepth()
size_t cv::ocl::Device::image3DMaxHeight ( ) const
Python:
retval=cv.ocl_Device.image3DMaxHeight()
size_t cv::ocl::Device::image3DMaxWidth ( ) const
Python:
retval=cv.ocl_Device.image3DMaxWidth()
uint cv::ocl::Device::imageBaseAddressAlignment ( ) const
bool cv::ocl::Device::imageFromBufferSupport ( ) const
Python:
retval=cv.ocl_Device.imageFromBufferSupport()
size_t cv::ocl::Device::imageMaxArraySize ( ) const
Python:
retval=cv.ocl_Device.imageMaxArraySize()
size_t cv::ocl::Device::imageMaxBufferSize ( ) const
Python:
retval=cv.ocl_Device.imageMaxBufferSize()
uint cv::ocl::Device::imagePitchAlignment ( ) const
bool cv::ocl::Device::imageSupport ( ) const
Python:
retval=cv.ocl_Device.imageSupport()
bool cv::ocl::Device::intelSubgroupsSupport ( ) const
Python:
retval=cv.ocl_Device.intelSubgroupsSupport()

deprecated, use isExtensionSupported() method (probably with "cl_khr_subgroups" value)

bool cv::ocl::Device::isAMD ( ) const
inline
Python:
retval=cv.ocl_Device.isAMD()
bool cv::ocl::Device::isExtensionSupported ( const String extensionName) const
Python:
retval=cv.ocl_Device.isExtensionSupported(extensionName)
bool cv::ocl::Device::isIntel ( ) const
inline
Python:
retval=cv.ocl_Device.isIntel()
bool cv::ocl::Device::isNVidia ( ) const
inline
Python:
retval=cv.ocl_Device.isNVidia()
bool cv::ocl::Device::linkerAvailable ( ) const
Python:
retval=cv.ocl_Device.linkerAvailable()
size_t cv::ocl::Device::localMemSize ( ) const
Python:
retval=cv.ocl_Device.localMemSize()
int cv::ocl::Device::localMemType ( ) const
Python:
retval=cv.ocl_Device.localMemType()
int cv::ocl::Device::maxClockFrequency ( ) const
Python:
retval=cv.ocl_Device.maxClockFrequency()
int cv::ocl::Device::maxComputeUnits ( ) const
Python:
retval=cv.ocl_Device.maxComputeUnits()
int cv::ocl::Device::maxConstantArgs ( ) const
Python:
retval=cv.ocl_Device.maxConstantArgs()
size_t cv::ocl::Device::maxConstantBufferSize ( ) const
Python:
retval=cv.ocl_Device.maxConstantBufferSize()
size_t cv::ocl::Device::maxMemAllocSize ( ) const
Python:
retval=cv.ocl_Device.maxMemAllocSize()
size_t cv::ocl::Device::maxParameterSize ( ) const
Python:
retval=cv.ocl_Device.maxParameterSize()
int cv::ocl::Device::maxReadImageArgs ( ) const
Python:
retval=cv.ocl_Device.maxReadImageArgs()
int cv::ocl::Device::maxSamplers ( ) const
Python:
retval=cv.ocl_Device.maxSamplers()
size_t cv::ocl::Device::maxWorkGroupSize ( ) const
Python:
retval=cv.ocl_Device.maxWorkGroupSize()
int cv::ocl::Device::maxWorkItemDims ( ) const
Python:
retval=cv.ocl_Device.maxWorkItemDims()
void cv::ocl::Device::maxWorkItemSizes ( size_t *  ) const
int cv::ocl::Device::maxWriteImageArgs ( ) const
Python:
retval=cv.ocl_Device.maxWriteImageArgs()
int cv::ocl::Device::memBaseAddrAlign ( ) const
Python:
retval=cv.ocl_Device.memBaseAddrAlign()
String cv::ocl::Device::name ( ) const
Python:
retval=cv.ocl_Device.name()
int cv::ocl::Device::nativeVectorWidthChar ( ) const
Python:
retval=cv.ocl_Device.nativeVectorWidthChar()
int cv::ocl::Device::nativeVectorWidthDouble ( ) const
Python:
retval=cv.ocl_Device.nativeVectorWidthDouble()
int cv::ocl::Device::nativeVectorWidthFloat ( ) const
Python:
retval=cv.ocl_Device.nativeVectorWidthFloat()
int cv::ocl::Device::nativeVectorWidthHalf ( ) const
Python:
retval=cv.ocl_Device.nativeVectorWidthHalf()
int cv::ocl::Device::nativeVectorWidthInt ( ) const
Python:
retval=cv.ocl_Device.nativeVectorWidthInt()
int cv::ocl::Device::nativeVectorWidthLong ( ) const
Python:
retval=cv.ocl_Device.nativeVectorWidthLong()
int cv::ocl::Device::nativeVectorWidthShort ( ) const
Python:
retval=cv.ocl_Device.nativeVectorWidthShort()
String cv::ocl::Device::OpenCL_C_Version ( ) const
Python:
retval=cv.ocl_Device.OpenCL_C_Version()
String cv::ocl::Device::OpenCLVersion ( ) const
Python:
retval=cv.ocl_Device.OpenCLVersion()
Device& cv::ocl::Device::operator= ( const Device d)
int cv::ocl::Device::preferredVectorWidthChar ( ) const
Python:
retval=cv.ocl_Device.preferredVectorWidthChar()
int cv::ocl::Device::preferredVectorWidthDouble ( ) const
Python:
retval=cv.ocl_Device.preferredVectorWidthDouble()
int cv::ocl::Device::preferredVectorWidthFloat ( ) const
Python:
retval=cv.ocl_Device.preferredVectorWidthFloat()
int cv::ocl::Device::preferredVectorWidthHalf ( ) const
Python:
retval=cv.ocl_Device.preferredVectorWidthHalf()
int cv::ocl::Device::preferredVectorWidthInt ( ) const
Python:
retval=cv.ocl_Device.preferredVectorWidthInt()
int cv::ocl::Device::preferredVectorWidthLong ( ) const
Python:
retval=cv.ocl_Device.preferredVectorWidthLong()
int cv::ocl::Device::preferredVectorWidthShort ( ) const
Python:
retval=cv.ocl_Device.preferredVectorWidthShort()
size_t cv::ocl::Device::printfBufferSize ( ) const
Python:
retval=cv.ocl_Device.printfBufferSize()
size_t cv::ocl::Device::profilingTimerResolution ( ) const
Python:
retval=cv.ocl_Device.profilingTimerResolution()
void* cv::ocl::Device::ptr ( ) const
void cv::ocl::Device::set ( void *  d)
int cv::ocl::Device::singleFPConfig ( ) const
Python:
retval=cv.ocl_Device.singleFPConfig()
int cv::ocl::Device::type ( ) const
Python:
retval=cv.ocl_Device.type()
int cv::ocl::Device::vendorID ( ) const
Python:
retval=cv.ocl_Device.vendorID()
String cv::ocl::Device::vendorName ( ) const
Python:
retval=cv.ocl_Device.vendorName()
String cv::ocl::Device::version ( ) const
Python:
retval=cv.ocl_Device.version()

Member Data Documentation

Impl* cv::ocl::Device::p
protected

The documentation for this class was generated from the following file: