Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Embed: (wiki syntax)

« Back to documentation index

Initalization and Information

Initalization and Information
[Core part]

Data Structures

class  TargetArchs
 Class providing a set of static methods to check what NVIDIA\* card architecture the CUDA module was built for. More...
class  DeviceInfo
 Class providing functionality for querying the specified GPU properties. More...

Enumerations

enum  FeatureSet
 

Enumeration providing CUDA computing features.

More...

Functions

CV_EXPORTS int getCudaEnabledDeviceCount ()
 Returns the number of installed CUDA-enabled devices.
CV_EXPORTS void setDevice (int device)
 Sets a device and initializes it for the current thread.
CV_EXPORTS int getDevice ()
 Returns the current device index set by cuda::setDevice or initialized by default.
CV_EXPORTS void resetDevice ()
 Explicitly destroys and cleans up all resources associated with the current device in the current process.
CV_EXPORTS bool deviceSupports (FeatureSet feature_set)
 checks whether current device supports the given feature

Enumeration Type Documentation

enum FeatureSet

Enumeration providing CUDA computing features.

Definition at line 573 of file cuda.hpp.


Function Documentation

bool deviceSupports ( FeatureSet  feature_set )

checks whether current device supports the given feature

Definition at line 98 of file cuda_info.cpp.

int getCudaEnabledDeviceCount (  )

Returns the number of installed CUDA-enabled devices.

Use this function before any other CUDA functions calls. If OpenCV is compiled without CUDA support, this function returns 0.

Definition at line 48 of file cuda_info.cpp.

int getDevice (  )

Returns the current device index set by cuda::setDevice or initialized by default.

Definition at line 77 of file cuda_info.cpp.

void resetDevice (  )

Explicitly destroys and cleans up all resources associated with the current device in the current process.

Any subsequent API call to this device will reinitialize the device.

Definition at line 89 of file cuda_info.cpp.

void setDevice ( int  device )

Sets a device and initializes it for the current thread.

Parameters:
deviceSystem index of a CUDA device starting with 0.

If the call of this function is omitted, a default device is initialized at the fist CUDA usage.

Definition at line 67 of file cuda_info.cpp.