Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class unsupported_extension_error

boost::compute::unsupported_extension_error — Exception thrown when attempting to use an unsupported OpenCL extension.

Synopsis

// In header: <boost/compute/exception/unsupported_extension_error.hpp>


class unsupported_extension_error : public std::exception {
public:
  // construct/copy/destruct
  explicit unsupported_extension_error(const char *);
  ~unsupported_extension_error();

  // public member functions
  std::string extension_name() const;
  const char * what() const;
};

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

  1. 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.

  2. ~unsupported_extension_error();
    Destroys the unsupported extension error object.

unsupported_extension_error public member functions

  1. std::string extension_name() const;
    Returns the name of the unsupported extension.
  2. const char * what() const;

    Returns a string containing a human-readable error message containing the name of the unsupported exception.


PrevUpHomeNext