Download modules/dnn/src/cuda4dnn/csl/error.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/cuda4dnn/csl/error.hpp
- Command line
-
hf download hf://tgollogly/test/modules/dnn/src/cuda4dnn/csl/error.hpp
-
curl -L -o error.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/cuda4dnn/csl/error.hpp
1.08 kB
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html. | |
| namespace cv { namespace dnn { namespace cuda4dnn { namespace csl { | |
| /** @brief exception class for errors thrown by the CUDA APIs */ | |
| class CUDAException : public cv::Exception { | |
| public: | |
| using cv::Exception::Exception; | |
| }; | |
| namespace detail { | |
| inline void check(cudaError_t err, const char* func, const char* file, int line) { | |
| if (err != cudaSuccess) | |
| throw CUDAException(Error::GpuApiCallError, cudaGetErrorString(err), func, file, line); | |
| } | |
| } | |
| }}}} /* namespace cv::dnn::cuda4dnn::csl */ | |