mgcpp
A C++ Math Library Based on CUDA
cublas_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_CUBLAS_ERROR_HPP_
8 #define _MGCPP_SYSTEM_CUBLAS_ERROR_HPP_
9 
10 #include <cublas_v2.h>
11 
12 #include <string>
13 #include <system_error>
14 #include <type_traits>
15 
16 namespace mgcpp {
17 typedef cublasStatus_t cublas_error_t;
18 }
19 
20 std::error_code make_error_code(mgcpp::cublas_error_t err) noexcept;
21 
22 namespace std {
23 template <>
24 struct is_error_code_enum<mgcpp::cublas_error_t> : public std::true_type {};
25 } // namespace std
26 
27 #endif
Definition: adapter_base.hpp:12
cublasStatus_t cublas_error_t
Definition: cublas_error.hpp:17
Definition: shape.hpp:33
std::error_code make_error_code(mgcpp::mgblas_error_t err) noexcept