|
Equalizer 1.0
|
The interface definition for API-specific GPGPU handling. More...
#include <computeContext.h>
Inheritance diagram for eq::ComputeContext:
Collaboration diagram for eq::ComputeContext:Public Member Functions | |
| ComputeContext (Pipe *parent) | |
| Create a new ComputeContext for the given accelerator. | |
| virtual | ~ComputeContext () |
| Destroy the ComputeContext. | |
Data Access | |
| Pipe * | getPipe () |
| const Pipe * | getPipe () 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. | |
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.
Definition at line 37 of file computeContext.h.
| virtual eq::ComputeContext::~ComputeContext | ( | ) | [virtual] |
Destroy the ComputeContext.
| 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.
| const Pipe* eq::ComputeContext::getPipe | ( | ) | const [inline] |
Definition at line 54 of file computeContext.h.
| Pipe* eq::ComputeContext::getPipe | ( | ) | [inline] |
Definition at line 51 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.
| error | the error code. |
1.0 by
1.7.3