Class unsupported_extension_error
boost::compute::unsupported_extension_error — Exception thrown when attempting to use an unsupported OpenCL extension.
Synopsis
Description
This exception is thrown when the user attempts to use an OpenCL extension which is not supported on the platform and/or device.
An example of this is attempting to use CL-GL sharing on a non-GPU device.
See Also:
opencl_error
unsupported_extension_error
public
construct/copy/destruct
-
explicit unsupported_extension_error(const char * extension);
Creates a new unsupported extension error exception object indicating that extension
is not supported by the OpenCL platform or device.
-
~unsupported_extension_error();
Destroys the unsupported extension error object.
unsupported_extension_error
public member functions
-
std::string extension_name() const;
Returns the name of the unsupported extension.
-
const char * what() const;
Returns a string containing a human-readable error message containing the name of the unsupported exception.