|
libnabo
1.0.7
|
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 | |
Cache CL source code (including defines and support code)