Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
|
A DeviceConstraint restricts the type of processing device, which HyPE may choose to process an operator. More...
#include <specification.hpp>
Public Member Functions | |
DeviceConstraint (DeviceTypeConstraint dev_constr=ANY_DEVICE, ProcessingDeviceMemoryID pd_mem_constr=PD_Memory_0) | |
constructs an DeviceConstraint object by assigning necessary informations to all fields of the object | |
DeviceTypeConstraint | getDeviceTypeConstraint () const |
returns the DeviceTypeConstraint | |
operator DeviceTypeConstraint () | |
implicit conversion to an object of type DeviceTypeConstraint | |
operator ProcessingDeviceMemoryID () | |
implicit conversion to an object of type ProcessingDeviceMemoryID | |
operator DeviceTypeConstraint () const | |
implicit conversion to an object of type DeviceTypeConstraint | |
operator ProcessingDeviceMemoryID () const | |
implicit conversion to an object of type ProcessingDeviceMemoryID | |
Private Attributes | |
DeviceTypeConstraint | dev_constr_ |
the device type constraint | |
ProcessingDeviceMemoryID | pd_mem_constr_ |
the memory id of the memory, where the data should be processed |
This is especially important if an algorithms does not support a certain data type on a certain processing device (e.g., no filter operations on an array of strings on the GPU). On default construction, no constraint is defined.
Definition at line 187 of file specification.hpp.
hype::core::DeviceConstraint::DeviceConstraint | ( | DeviceTypeConstraint | dev_constr = ANY_DEVICE , |
ProcessingDeviceMemoryID | pd_mem_constr = PD_Memory_0 |
||
) |
dev_constr | a device type constraint (e.g., CPU_ONLY or ANY_DEVICE for now restriction) |
pd_mem_constr | memory id, where the data should be stored when processed (experimental) |
Definition at line 135 of file specification.cpp.
Definition at line 140 of file specification.cpp.
References dev_constr_.
hype::core::DeviceConstraint::operator DeviceTypeConstraint | ( | ) |
hype::core::DeviceConstraint::operator DeviceTypeConstraint | ( | ) | const |
hype::core::DeviceConstraint::operator ProcessingDeviceMemoryID | ( | ) |
hype::core::DeviceConstraint::operator ProcessingDeviceMemoryID | ( | ) | const |
Definition at line 223 of file specification.hpp.
Referenced by getDeviceTypeConstraint(), and operator DeviceTypeConstraint().
Definition at line 225 of file specification.hpp.
Referenced by operator ProcessingDeviceMemoryID().