mgcpp
A C++ Math Library Based on CUDA
half_precision.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_GLOBAL_HALF_PRECISION_HPP_
8 #define _MGCPP_GLOBAL_HALF_PRECISION_HPP_
9 
10 #ifdef USE_HALF
11 #include <cuComplex.h>
12 #include <cuda_fp16.h>
13 #include <half/half.hpp>
14 namespace mgcpp {
15 using half = half_float::half;
16 }
17 #endif
18 
19 #endif
Definition: adapter_base.hpp:12