|
libnabo
1.0.7
|
Create and manage CL contexts and corresponding source caches. More...
Public Types | |
| typedef std::map< cl_device_type, SourceCacher * > | Devices |
| A map from device to caches. | |
Public Member Functions | |
| ~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. | |
Protected Attributes | |
| Devices | devices |
| devices with caches | |
| std::mutex | mutex |
| mutex to protect concurrent accesses to devices | |
Create and manage CL contexts and corresponding source caches.