|
static cl::Device | activeDevice () |
| Returns the active device. More...
|
|
static QString | activeDeviceInfo (const Info infoType=Info::Name) |
| Returns infoType information about the active (default) device. More...
|
|
static QString | activePlatformVersion () |
| Returns the active platform OpenCL version string (e.g. More...
|
|
static bool | available () |
| Checks whether a suitable OpenCL platform and device is available on this system and initialize the QGIS OpenCL system by activating the preferred device if specified in the user the settings, if no preferred device was set or the preferred device could not be found the first GPU device is activated, the first CPU device acts as a fallback if none of the previous could be found. More...
|
|
static QString | buildLog (cl::BuildError &error) |
| Extract and return the build log error from error. More...
|
|
static Q_DECL_DEPRECATED cl::Program | buildProgram (const cl::Context &context, const QString &source, ExceptionBehavior exceptionBehavior=Catch) |
| Build the program from source in the given context and depending on exceptionBehavior can throw or catch the exceptions. More...
|
|
static cl::Program | buildProgram (const QString &source, ExceptionBehavior exceptionBehavior=Catch) |
| Build the program from source, depending on exceptionBehavior can throw or catch the exceptions. More...
|
|
static cl::CommandQueue | commandQueue () |
| Create an OpenCL command queue from the default context. More...
|
|
static cl::Context | context () |
| Context factory. More...
|
|
static QString | deviceDescription (const cl::Device device) |
| Returns a formatted description for the device. More...
|
|
static QString | deviceDescription (const QString deviceId) |
| Returns a formatted description for the device identified by deviceId. More...
|
|
static QString | deviceId (const cl::Device device) |
| Create a string identifier from a device. More...
|
|
static QString | deviceInfo (const Info infoType, cl::Device device) |
| Returns infoType information about the device. More...
|
|
static const std::vector< cl::Device > | devices () |
| Returns a list of OpenCL devices found on this sysytem. More...
|
|
static bool | enabled () |
| Returns true if OpenCL is enabled in the user settings. More...
|
|
static QString | errorText (const int errorCode) |
| Returns a string representation from an OpenCL errorCode. More...
|
|
static QString | preferredDevice () |
| Read from the settings the preferred device identifier. More...
|
|
static void | setEnabled (bool enabled) |
| Set the OpenCL user setting to enabled. More...
|
|
static void | setSourcePath (const QString &value) |
| Set the base path to OpenCL program directory. More...
|
|
static QString | sourceFromBaseName (const QString &baseName) |
| Returns the full path to a an OpenCL source file from the baseName ('.cl' extension is automatically appended) More...
|
|
static QString | sourceFromPath (const QString &path) |
| Read an OpenCL source file from path. More...
|
|
static QString | sourcePath () |
| Returns the base path to OpenCL program directory. More...
|
|
static void | storePreferredDevice (const QString deviceId) |
| Store in the settings the preferred deviceId device identifier. More...
|
|