12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BOOST_COMPUTE_EXCEPTION_PROGRAM_BUILD_FAILURE_HPP
- #define BOOST_COMPUTE_EXCEPTION_PROGRAM_BUILD_FAILURE_HPP
- #include <string>
- #include <boost/compute/exception/opencl_error.hpp>
- namespace boost {
- namespace compute {
- class program_build_failure : public opencl_error
- {
- public:
-
-
- explicit program_build_failure(cl_int error, const std::string& build_log)
- throw()
- : opencl_error(error),
- m_build_log(build_log)
- {
- }
-
- ~program_build_failure() throw()
- {
- }
-
- std::string build_log() const throw()
- {
- return m_build_log;
- }
- private:
- std::string m_build_log;
- };
- }
- }
- #endif // BOOST_COMPUTE_EXCEPTION_PROGRAM_BUILD_FAILURE_HPP
|