Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
hype::core::DeviceConstraint Struct Reference

A DeviceConstraint restricts the type of processing device, which HyPE may choose to process an operator. More...

#include <specification.hpp>

List of all members.

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

Detailed Description

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.

Author:
Sebastian Breß
Version:
0.2
Date:
2013
Examples:
online_learning.cpp, and online_learning_manual_time_measurement.cpp.

Definition at line 187 of file specification.hpp.


Constructor & Destructor Documentation

Parameters:
dev_constra device type constraint (e.g., CPU_ONLY or ANY_DEVICE for now restriction)
pd_mem_constrmemory id, where the data should be stored when processed (experimental)

Definition at line 135 of file specification.cpp.


Member Function Documentation

hype::core::DeviceConstraint::operator DeviceTypeConstraint ( )

non-const version

Definition at line 145 of file specification.cpp.

References dev_constr_.

hype::core::DeviceConstraint::operator DeviceTypeConstraint ( ) const

const version

Definition at line 154 of file specification.cpp.

References dev_constr_.

hype::core::DeviceConstraint::operator ProcessingDeviceMemoryID ( )

non-const version

Definition at line 149 of file specification.cpp.

References pd_mem_constr_.

hype::core::DeviceConstraint::operator ProcessingDeviceMemoryID ( ) const

const version

Definition at line 158 of file specification.cpp.

References pd_mem_constr_.


Member Data Documentation


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines