HCC
HCC is a single-source, C/C++ compiler for heterogeneous computing. It's optimized with HSA (http://www.hsafoundation.com/).
hc_short_vector.hpp
1 #pragma once
2 
3 #ifndef _HC_SHORT_VECTORS_HPP
4 #define _HC_SHORT_VECTORS_HPP
5 
6 #include <cstddef>
7 #include <type_traits>
8 #include "kalmar_serialize.h"
9 #include "hc_defines.h"
10 
11 namespace hc
12 {
13 
14 namespace short_vector
15 {
16 
17 #ifdef __HCC__
18 #define __CPU_GPU__ [[cpu]] [[hc]]
19 #else
20 #define __CPU_GPU__
21 #endif
22 
23 #if 1
24 #include "hc_short_vector.inl"
25 #else
26 #include "kalmar_short_vectors.inl"
27 #endif
28 
29 #undef __CPU_GPU__
30 
31 } // namespace short_vector
32 
33 } // namespace hc
34 
35 #endif // _HC_SHORT_VECTORS_H
Definition: hc_short_vector.inl:171
Heterogeneous C++ (HC) namespace.
Definition: grid_launch.h:10