Equalizer  1.2.1
Public Member Functions
eq::ComputeContext Class Reference

The interface definition for API-specific GPGPU handling. More...

#include <computeContext.h>

+ Inheritance diagram for eq::ComputeContext:

List of all members.

Public Member Functions

 ComputeContext (Pipe *parent)
 Create a new ComputeContext for the given accelerator.
virtual ~ComputeContext ()
 Destroy the ComputeContext.
Data Access
PipegetPipe ()
const PipegetPipe () const
Methods forwarded from Pipe
virtual bool configInit ()=0
 Initialize the ComputeContext.
virtual void configExit ()=0
 De-initialize the ComputeContext.

Protected Member Functions

Error information.
void setError (const uint32_t error)
 Set a reason why the last operation failed.

Detailed Description

The interface definition for API-specific GPGPU handling.

The ComputeContext abstracts all GPGPU API-system specific code for handling a GPU for computing purposes. Each Pipe uses one ComputeContext, which is initialized in Pipe::configInit.

Warning:
Experimental - may not be supported in the future.

Definition at line 35 of file computeContext.h.


Constructor & Destructor Documentation

virtual eq::ComputeContext::~ComputeContext ( ) [virtual]

Destroy the ComputeContext.


Member Function Documentation

virtual void eq::ComputeContext::configExit ( ) [pure virtual]

De-initialize the ComputeContext.

Implemented in eq::CUDAContext.

virtual bool eq::ComputeContext::configInit ( ) [pure virtual]

Initialize the ComputeContext.

Implemented in eq::CUDAContext.

Returns:
the parent pipe.

Definition at line 49 of file computeContext.h.

const Pipe* eq::ComputeContext::getPipe ( ) const [inline]
Returns:
the parent pipe.

Definition at line 52 of file computeContext.h.

void eq::ComputeContext::setError ( const uint32_t  error) [protected]

Set a reason why the last operation failed.

The error will be transmitted to the originator of the request, for example to Config::init when set from within the configInit method.

Parameters:
errorthe error code.
Version:
1.0

The documentation for this class was generated from the following file:
Generated on Fri Jun 8 2012 15:44:35 for Equalizer 1.2.1 by  doxygen 1.8.0