|
|
|||
File indexing completed on 2025-12-16 09:44:35
0001 //---------------------------------------------------------------------------// 0002 // Copyright (c) 2013-2015 Kyle Lutz <kyle.r.lutz@gmail.com> 0003 // 0004 // Distributed under the Boost Software License, Version 1.0 0005 // See accompanying file LICENSE_1_0.txt or copy at 0006 // http://www.boost.org/LICENSE_1_0.txt 0007 // 0008 // See http://boostorg.github.com/compute for more information. 0009 //---------------------------------------------------------------------------// 0010 0011 #ifndef BOOST_COMPUTE_EXCEPTION_NO_DEVICE_FOUND_HPP 0012 #define BOOST_COMPUTE_EXCEPTION_NO_DEVICE_FOUND_HPP 0013 0014 #include <exception> 0015 0016 namespace boost { 0017 namespace compute { 0018 0019 /// \class no_device_found 0020 /// \brief Exception thrown when no OpenCL device is found 0021 /// 0022 /// This exception is thrown when no valid OpenCL device can be found. 0023 /// 0024 /// \see opencl_error 0025 class no_device_found : public std::exception 0026 { 0027 public: 0028 /// Creates a new no_device_found exception object. 0029 no_device_found() throw() 0030 { 0031 } 0032 0033 /// Destroys the no_device_found exception object. 0034 ~no_device_found() throw() 0035 { 0036 } 0037 0038 /// Returns a string containing a human-readable error message. 0039 const char* what() const throw() 0040 { 0041 return "No OpenCL device found"; 0042 } 0043 }; 0044 0045 } // end compute namespace 0046 } // end boost namespace 0047 0048 #endif // BOOST_COMPUTE_EXCEPTION_NO_DEVICE_FOUND_HPP
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|