libnabo  1.0.6
Public Types | Public Member Functions | Protected Attributes | List of all members
Nabo::ContextManager Class Reference

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.
 
SourceCachergetSourceCacher (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
 

Detailed Description

Create and manage CL contexts and corresponding source caches.


The documentation for this class was generated from the following file: