GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
CUDA_device Class Reference

#include <cudautils.h>

List of all members.

Public Member Functions

 CUDA_device (int id=-1)
 Creates a CUDA device object and calculates estimated performance.
bool operator< (const CUDA_device &b) const
 Comparation operator overloaded for device list sorting.
void Set_Information (unsigned long long _compute_perf, int arch)
 Sets the information associated to a certain CUDA device.
void Print () const
 Prints information associated to a certain CUDA device.
std::string Get_Name () const
 Obtains the GPU device name.
int Get_ID () const
 Obtains the device id.

Constructor & Destructor Documentation

CUDA_device::CUDA_device ( int  _id = -1)

Creates a CUDA device object and calculates estimated performance.

Parameters:
_idCUDA device id.

Member Function Documentation

int CUDA_device::Get_ID ( ) const [inline]

Obtains the device id.

Returns:
device id.
std::string CUDA_device::Get_Name ( ) const [inline]

Obtains the GPU device name.

Returns:
device name.
bool CUDA_device::operator< ( const CUDA_device &  other) const

Comparation operator overloaded for device list sorting.

Parameters:
otherother device object for comparison.
Returns:
true if the device has a higher architecture version and more compute units.
void CUDA_device::Print ( ) const

Prints information associated to a certain CUDA device.

void CUDA_device::Set_Information ( unsigned long long  _compute_perf,
int  arch 
)

Sets the information associated to a certain CUDA device.

Parameters:
_compute_perfestimated compute performance.
archmajor architecture version number.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines