Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
system
HostDevice.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_SYSTEM_HOSTDEVICE_H_
36
#define _BLAZE_SYSTEM_HOSTDEVICE_H_
37
38
39
40
41
//=================================================================================================
42
//
43
// CUDA MACRO DEFINITIONS
44
//
45
//=================================================================================================
46
47
//*************************************************************************************************
52
#ifdef __CUDACC__
53
# define BLAZE_GLOBAL __global__
54
#else
55
# define BLAZE_GLOBAL
56
#endif
57
//*************************************************************************************************
58
59
60
//*************************************************************************************************
65
#ifdef __CUDACC__
66
# define BLAZE_DEVICE __device__
67
#else
68
# define BLAZE_DEVICE
69
#endif
70
//*************************************************************************************************
71
72
73
//*************************************************************************************************
78
#ifdef __CUDACC__
79
# define BLAZE_HOST __host__
80
#else
81
# define BLAZE_HOST
82
#endif
83
//*************************************************************************************************
84
85
86
//*************************************************************************************************
91
#ifdef __CUDACC__
92
# define BLAZE_DEVICE_CALLABLE __host__ __device__
93
#else
94
# define BLAZE_DEVICE_CALLABLE
95
#endif
96
//*************************************************************************************************
97
98
#endif
Generated by
1.18.0