Create and manage CL contexts and corresponding source caches.
More...
|
|
typedef std::map< cl_device_type, SourceCacher * > | Devices |
| | A map from device to caches.
|
| |
|
|
| ~ContextManager () |
| | Destroy the manager and all caches.
|
| |
|
cl::Context & | createContext (const cl_device_type deviceType) |
| | Create a new contexc for a given type of device.
|
| |
|
SourceCacher * | getSourceCacher (const cl_device_type deviceType) |
| | Return the cache for a given type of device.
|
| |
|
|
Devices | devices |
| | devices with caches
|
| |
|
std::mutex | mutex |
| | mutex to protect concurrent accesses to devices
|
| |
Create and manage CL contexts and corresponding source caches.
The documentation for this class was generated from the following file: