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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index 212d002e2..5dd68408d 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -31,6 +31,9 @@
extern "C" {
#include <libavutil/pixfmt.h>
}
+#ifdef DCPOMATIC_HAVE_NVJPEG2K
+#include <cuda_runtime_api.h>
+#endif
#include <fmt/format.h>
#include <boost/filesystem.hpp>
#include <boost/optional.hpp>
@@ -547,4 +550,13 @@ public:
};
+#ifdef DCPOMATIC_HAVE_NVJPEG2K
+class CUDAError : public std::runtime_error
+{
+public:
+ CUDAError(std::string function, cudaError_t error);
+ CUDAError(std::string function, int);
+};
+#endif
+
#endif