summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exceptions.h')
-rw-r--r--src/lib/exceptions.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index 7c9509800..0712c085b 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -32,6 +32,9 @@
extern "C" {
#include <libavutil/pixfmt.h>
}
+#ifdef HAVE_NVJPEG2K_H
+#include <cuda_runtime_api.h>
+#endif
#include <boost/filesystem.hpp>
#include <boost/optional.hpp>
#include <cstring>
@@ -457,4 +460,12 @@ public:
};
+class CUDAError : public std::runtime_error
+{
+public:
+ CUDAError (std::string function, cudaError_t error);
+ CUDAError (std::string function, int);
+};
+
+
#endif