Column-oriented GPU-accelerated Database Management System
CoGaDB
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

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.

Author:
Sebastian Breß
Version:
0.2
Date:
2013

Constructor & Destructor Documentation

constructs an DeviceSpecification object by assigning necessary informations to all fields of the object

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

Member Function Documentation

returns the processing device's device type

returns the processing device's memory id

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


Member Data Documentation

the processing device's ProcessingDeviceID

the processing device's memory id

the processing device's device type


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