#include "CL/cl.h"
-#include "util/compat.hpp"
+#include <stdexcept>
namespace clover {
class command_queue;
/// Class that represents an error that can be converted to an
/// OpenCL status code.
///
- class error : public compat::runtime_error {
+ class error : public std::runtime_error {
public:
- error(cl_int code, compat::string what = "") :
- compat::runtime_error(what), code(code) {
+ error(cl_int code, std::string what = "") :
+ std::runtime_error(what), code(code) {
}
cl_int get() const {
class build_error : public error {
public:
- build_error(const compat::string &log) :
- error(CL_BUILD_PROGRAM_FAILURE, log) {
+ build_error(const std::string &what = "") :
+ error(CL_COMPILE_PROGRAM_FAILURE, what) {
}
};