|
SkePU 0.7
|
A class representing a execution environment. More...
#include <environment.h>

Public Member Functions | |
| void | finishAll_CL () |
| void | finishAll_CU () |
| void | finishAll () |
Static Public Member Functions | |
| static Environment * | getInstance () |
Protected Member Functions | |
| Environment () | |
| virtual | ~Environment () |
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.
| skepu::Environment< T >::Environment | ( | ) | [protected] |
The constructor initializes the devices.
| skepu::Environment< T >::~Environment | ( | ) | [protected, virtual] |
The constructor initializes the devices.
| void skepu::Environment< T >::finishAll | ( | ) |
Wrapper for CUDA and OpenCL variants. Does not do anything if neither is used. Makes code more portable.
| void skepu::Environment< T >::finishAll_CL | ( | ) |
Finish all OpenCL functions on all devices.
| void skepu::Environment< T >::finishAll_CU | ( | ) |
Finish all CUDA functions on current device.
| Environment< T > * skepu::Environment< T >::getInstance | ( | ) | [static] |
Gets pointer to first instance, at first call a new instance is created.
1.7.4