cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
src
cuda
define_specifiers.hpp
Go to the documentation of this file.
1
9
#ifdef __CUDACC__
10
11
#ifndef CUDA_FD
12
#define CUDA_FD __forceinline__ __device__
13
#endif
14
15
#ifndef CUDA_FH
16
#define CUDA_FH __forceinline__ __host__
17
#endif
18
19
#ifndef CUDA_FHD
20
#define CUDA_FHD __forceinline__ __host__ __device__
21
#endif
22
23
#ifndef CUDA_HD
24
#define CUDA_HD __host__ __device__
25
#endif
26
27
#ifndef CUDA_D
28
#define CUDA_D __device__
29
#endif
30
31
#ifndef CUDA_H
32
#define CUDA_H __host__
33
#endif
34
35
#else // __CUDACC__
36
37
#ifndef CUDA_FD
38
#define CUDA_FD inline
39
#endif
40
41
#ifndef CUDA_FH
42
#define CUDA_FH inline
43
#endif
44
45
#ifndef CUDA_FHD
46
#define CUDA_FHD inline
47
#endif
48
49
#ifndef CUDA_HD
50
#define CUDA_HD
51
#endif
52
53
#ifndef CUDA_D
54
#define CUDA_D
55
#endif
56
57
#ifndef CUDA_H
58
#define CUDA_H
59
#endif
60
61
#endif // __CUDACC__
Generated by
1.8.13