#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