...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::unsupported_extension_error — Exception thrown when attempting to use an unsupported OpenCL extension.
// In header: <boost/compute/exception/unsupported_extension_error.hpp> class unsupported_extension_error : public std::exception { public: // public member functions explicit unsupported_extension_error(const char *); ~unsupported_extension_error(); std::string extension_name() const; const char * what() const; };
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 member functionsexplicit 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.
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.