libnabo  1.1.2
Public Types | Public Member Functions | Public Attributes | List of all members
Nabo::SourceCacher Struct Reference

Cache CL source code (including defines and support code) More...

Public Types

typedef std::vector< cl::Device > Devices
 Vector of devices.
 
typedef std::map< std::string, cl::Program > ProgramCache
 Map of cached programmes.
 

Public Member Functions

 SourceCacher (const cl_device_type deviceType)
 Create a source cacher for a given device type, retrieves a list of devices.
 
 ~SourceCacher ()
 Destroy the cache, programs will be released automatically.
 
bool contains (const std::string &source)
 Return whether program source is cached.
 

Public Attributes

cl::Context context
 context in which programs are cached
 
Devices devices
 devices linked to the context
 
ProgramCache cachedPrograms
 cached programs
 

Detailed Description

Cache CL source code (including defines and support code)


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