mgcpp
A C++ Math Library Based on CUDA
include
mgcpp
system
error_code.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_ERROR_CODE_
8
#define _MGCPP_SYSTEM_ERROR_CODE_
9
10
#include <string>
11
#include <system_error>
12
#include <type_traits>
13
14
#include <
mgcpp/system/cublas_error.hpp
>
15
#include <
mgcpp/system/cuda_error.hpp
>
16
#include <
mgcpp/system/cufft_error.hpp
>
17
#include <
mgcpp/system/mgblas_error.hpp
>
18
19
namespace
mgcpp
{
20
enum class
status_t
{
success
= 0 };
21
22
std::error_condition
make_error_condition
(
mgcpp::status_t
err) noexcept;
23
}
// namespace mgcpp
24
25
namespace
std
{
26
template
<>
27
struct
is_error_condition_enum<
mgcpp
::
status_t
> :
public
std::true_type {};
28
}
// namespace std
29
30
#endif
mgcpp
Definition:
adapter_base.hpp:12
mgcpp::make_error_condition
std::error_condition make_error_condition(mgcpp::status_t err) noexcept
cuda_error.hpp
std
Definition:
shape.hpp:33
cufft_error.hpp
cublas_error.hpp
mgcpp::status_t
status_t
Definition:
error_code.hpp:20
mgcpp::status_t::success
mgblas_error.hpp
Generated by
1.8.13