#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
Creates a CUDA device object and calculates estimated performance.
- Parameters:
-
Member Function Documentation
Obtains the device id.
- Returns:
- device id.
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:
-
| other | other device object for comparison. |
- Returns:
- true if the device has a higher architecture version and more compute units.
Prints information associated to a certain CUDA device.
Sets the information associated to a certain CUDA device.
- Parameters:
-
| _compute_perf | estimated compute performance. |
| arch | major architecture version number. |
The documentation for this class was generated from the following files: