SkePU 0.7
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
skepu::Environment< T > Class Template Reference

A class representing a execution environment. More...

#include <environment.h>

Collaboration diagram for skepu::Environment< T >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  SkelObjectType

Public Member Functions

void finishAll ()

Static Public Member Functions

static EnvironmentgetInstance ()

Protected Member Functions

 Environment ()
virtual ~Environment ()

Detailed Description

template<typename T>
class skepu::Environment< T >

A class representing a execution environment.

Author:
Johan Enmyren, Usman Dastgeer
Version:
0.7

The Environment is used by the skeleton objects to define a execution environment for them to use. It mainly keeps track of which devices are available and gives access to them. It is implemented as a singleton so that only one environment is actually used and the skeletons stores a pointer to this instance which is created by the first defined skeleton.


Member Enumeration Documentation

template<typename T>
enum skepu::Environment::SkelObjectType

Enumeration of the different type of skeletons that is used while using StarPU performance models for different skeletons.


Constructor & Destructor Documentation

template<typename T >
skepu::Environment< T >::Environment ( ) [protected]

The constructor does not do much except calling starpu_init in this case as devices are managed by StarPU.

template<typename T >
skepu::Environment< T >::~Environment ( ) [protected, virtual]

The destructor does not do anything except calling starpu_shutdown in this case as devices are managed by StarPU.


Member Function Documentation

template<typename T >
void skepu::Environment< T >::finishAll ( )

Wrapper for CUDA and OpenCL variants. Does not do anything in this case as StarPU controls the devices.

template<typename T >
Environment< T > * skepu::Environment< T >::getInstance ( ) [static]

Gets pointer to first instance, at first call a new instance is created.

Returns:
Pointer to class instance.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Enumerations Friends Defines