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

A DeviceSpecification defines a processing device that is available for performing computations. More...

#include <specification.hpp>

List of all members.

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

Detailed Description

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.

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

Definition at line 131 of file specification.hpp.


Constructor & Destructor Documentation

Parameters:
pdthe unique id of the processing device
pd_ttype of the processing device (e.g., CPU or GPU)
pd_munique id of the memory the processing device uses

Definition at line 96 of file specification.cpp.


Member Function Documentation

Definition at line 112 of file specification.cpp.

References pd_t_.

Referenced by hype::queryprocessing::getProcessingDevice(), and hype::queryprocessing::VirtualProcessingDevice::print().

Here is the caller graph for this function:

Definition at line 102 of file specification.cpp.

References pd_m_.

Referenced by hype::queryprocessing::VirtualProcessingDevice::print().

Here is the caller graph for this function:

hype::core::DeviceSpecification::operator ProcessingDeviceID ( )

Definition at line 117 of file specification.cpp.

References pd_.

hype::core::DeviceSpecification::operator ProcessingDeviceMemoryID ( )

Definition at line 123 of file specification.cpp.

References pd_m_.

hype::core::DeviceSpecification::operator ProcessingDeviceType ( )

Definition at line 120 of file specification.cpp.

References pd_t_.

bool hype::core::DeviceSpecification::operator== ( const DeviceSpecification dev_spec) const

Definition at line 127 of file specification.cpp.

References pd_, pd_m_, and pd_t_.


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