SkePU 0.7
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 Member Functions

void finishAll_CL ()
void finishAll_CU ()
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.

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.


Constructor & Destructor Documentation

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

The constructor initializes the devices.

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

The constructor initializes the devices.


Member Function Documentation

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

Wrapper for CUDA and OpenCL variants. Does not do anything if neither is used. Makes code more portable.

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

Finish all OpenCL functions on all devices.

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

Finish all CUDA functions on current device.

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