| Home | Libraries | People | FAQ | More

## Class no_device_found

boost::compute::no_device_found — Exception thrown when no OpenCL device is found.

## Synopsis

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

    class no_device_found : public std::exception {
    public:

      // public member functions
      no_device_found();
      ~no_device_found();
      const char * what() const;
    };

## Description

This exception is thrown when no valid OpenCL device can be found.

See Also: opencl_error

### `no_device_found` public member functions

1.     no_device_found();

   Creates a new no_device_found exception object.

2.     ~no_device_found();

   Destroys the no_device_found exception object.

3.     const char * what() const;

   Returns a string containing a human-readable error message.