Column-oriented GPU-accelerated Database Management System
CoGaDB
|
A DeviceSpecification defines a processing device that is available for performing computations. More...
#include <specification.hpp>
Public Member Functions | |
DeviceSpecification (ProcessingDeviceID pd, ProcessingDeviceType pd_t, ProcessingDeviceMemoryID pd_m) | |
constructs an DeviceSpecification object by assigning necessary informations to all fields of the object | |
ProcessingDeviceID | getProcessingDeviceID () const throw () |
returns the processing device's ProcessingDeviceID | |
ProcessingDeviceType | getDeviceType () const throw () |
returns the processing device's device type | |
ProcessingDeviceMemoryID | getMemoryID () const throw () |
returns the processing device's memory id | |
operator ProcessingDeviceID () | |
implicit conversion to an object of type ProcessingDeviceID | |
operator ProcessingDeviceType () | |
implicit conversion to an object of type ProcessingDeviceType | |
operator ProcessingDeviceMemoryID () | |
implicit conversion to an object of type ProcessingDeviceMemoryID | |
bool | operator== (const DeviceSpecification &) const |
overload of operator== for this class | |
Private Attributes | |
ProcessingDeviceID | pd_ |
the processing device's ProcessingDeviceID | |
ProcessingDeviceType | pd_t_ |
the processing device's device type | |
ProcessingDeviceMemoryID | pd_m_ |
the processing device's memory id |
A DeviceSpecification defines a processing device that is available for performing computations.
It consists of a ProcessingDeviceID, which has to be unique, a processing device type (e.g., CPU or GPU) and a memory id, which specifies the memory that the processing devices uses. By convention, the host's CPU has the processing device id of 0, is a processing device from type CPU and the CPU's main memory has memory id 0.
hype::core::DeviceSpecification::DeviceSpecification | ( | ProcessingDeviceID | pd, |
ProcessingDeviceType | pd_t, | ||
ProcessingDeviceMemoryID | pd_m | ||
) |
constructs an DeviceSpecification object by assigning necessary informations to all fields of the object
pd | the unique id of the processing device |
pd_t | type of the processing device (e.g., CPU or GPU) |
pd_m | unique id of the memory the processing device uses |
ProcessingDeviceType hype::core::DeviceSpecification::getDeviceType | ( | ) | const throw () |
returns the processing device's device type
ProcessingDeviceMemoryID hype::core::DeviceSpecification::getMemoryID | ( | ) | const throw () |
returns the processing device's memory id
ProcessingDeviceID hype::core::DeviceSpecification::getProcessingDeviceID | ( | ) | const throw () |
returns the processing device's ProcessingDeviceID
hype::core::DeviceSpecification::operator ProcessingDeviceID | ( | ) |
implicit conversion to an object of type ProcessingDeviceID
hype::core::DeviceSpecification::operator ProcessingDeviceMemoryID | ( | ) |
implicit conversion to an object of type ProcessingDeviceMemoryID
hype::core::DeviceSpecification::operator ProcessingDeviceType | ( | ) |
implicit conversion to an object of type ProcessingDeviceType
bool hype::core::DeviceSpecification::operator== | ( | const DeviceSpecification & | ) | const |
overload of operator== for this class
the processing device's ProcessingDeviceID
the processing device's memory id
the processing device's device type