Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
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 |
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:
-
device System 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.
Generated on Tue Jul 12 2022 14:47:56 by
