1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013-2015 Kyle Lutz <kyle.r.lutz@gmail.com>
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
8 // See http://boostorg.github.com/compute for more information.
9 //---------------------------------------------------------------------------//
11 #ifndef BOOST_COMPUTE_EXCEPTION_NO_DEVICE_FOUND_HPP
12 #define BOOST_COMPUTE_EXCEPTION_NO_DEVICE_FOUND_HPP
19 /// \class no_device_found
20 /// \brief Exception thrown when no OpenCL device is found
22 /// This exception is thrown when no valid OpenCL device can be found.
25 class no_device_found : public std::exception
28 /// Creates a new no_device_found exception object.
29 no_device_found() throw()
33 /// Destroys the no_device_found exception object.
34 ~no_device_found() throw()
38 /// Returns a string containing a human-readable error message.
39 const char* what() const throw()
41 return "No OpenCL device found";
45 } // end compute namespace
46 } // end boost namespace
48 #endif // BOOST_COMPUTE_EXCEPTION_NO_DEVICE_FOUND_HPP