nnlib
GPU-accelerated, C/C++ neural network library.
unexpected_cuda_call_exception.h
Go to the documentation of this file.
1 
8 #ifndef NNLIB_UNEXPECTED_CUDA_CALL_EXCEPTION_H
9 #define NNLIB_UNEXPECTED_CUDA_CALL_EXCEPTION_H
10 
11 #include <exception>
12 
16 class UnexpectedCUDACallException : public std::exception {
17 
23  [[nodiscard]] const char* what() const noexcept override;
24 };
25 
26 
27 #endif //NNLIB_UNEXPECTED_CUDA_CALL_EXCEPTION_H
Exception to be thrown when a CUDA method was called despite no CUDA/GPU support.
Definition: unexpected_cuda_call_exception.h:16
const char * what() const noexcept override
Return the exception description.
Definition: unexpected_cuda_call_exception.cpp:10