mgcpp
A C++ Math Library Based on CUDA
cuda_error.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _MGCPP_SYSTEM_CUDA_ERROR_HPP_
8 #define _MGCPP_SYSTEM_CUDA_ERROR_HPP_
9 
10 #include <cuda_runtime.h>
11 
12 #include <string>
13 #include <system_error>
14 #include <type_traits>
15 
16 namespace mgcpp {
17 typedef cudaError_t cuda_error_t;
18 }
19 
20 std::error_code make_error_code(mgcpp::cuda_error_t err) noexcept;
21 
22 namespace std {
23 template <>
24 struct is_error_code_enum<mgcpp::cuda_error_t> : public std::true_type {};
25 } // namespace std
26 
27 #endif
Definition: adapter_base.hpp:12
Definition: shape.hpp:33
cudaError_t cuda_error_t
Definition: cuda_error.hpp:17
std::error_code make_error_code(mgcpp::mgblas_error_t err) noexcept