...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::program_build_failure — A failure when building OpenCL program.
// In header: <boost/compute/exception/program_build_failure.hpp> class program_build_failure : public boost::compute::opencl_error { public: // public member functions explicit program_build_failure(cl_int, const std::string &); ~program_build_failure(); std::string build_log() const; };
Instances of this class are thrown when OpenCL program build fails. Extends opencl_error by saving a program build log so it can be used for testing, debugging, or logging purposes.
See Also: opencl_error
program_build_failure
public member functionsexplicit program_build_failure(cl_int error, const std::string & build_log);
Creates a new program_build_failure exception object for error
and build_log
.
~program_build_failure();Destroys the program_build_failure object.
std::string build_log() const;Retrieve the log of a failed program build.