Go to the documentation of this file.
18 #ifndef viskores_internal__ExportMacros_h
19 #define viskores_internal__ExportMacros_h
29 #include "hip/hip_runtime.h"
30 #define VISKORES_EXEC __device__ __host__
31 #define VISKORES_EXEC_CONT __device__ __host__
32 #define VISKORES_SUPPRESS_EXEC_WARNINGS
34 #elif defined(VISKORES_CUDA)
36 #define VISKORES_EXEC __device__ __host__
37 #define VISKORES_EXEC_CONT __device__ __host__
41 #if __CUDAVER__ >= 75000
42 #define VISKORES_SUPPRESS_EXEC_WARNINGS __pragma(nv_exec_check_disable)
44 #define VISKORES_SUPPRESS_EXEC_WARNINGS __pragma(hd_warning_disable)
49 #if __CUDAVER__ >= 75000
50 #define VISKORES_SUPPRESS_EXEC_WARNINGS _Pragma("nv_exec_check_disable")
52 #define VISKORES_SUPPRESS_EXEC_WARNINGS _Pragma("hd_warning_disable")
57 #else // !VISKORES_CUDA
60 #define VISKORES_EXEC_CONT
61 #define VISKORES_SUPPRESS_EXEC_WARNINGS
63 #endif // !VISKORES_CUDA
96 #if defined(VISKORES_MSVC) || defined(VISKORES_CUDA) || defined(VISKORES_DOXYGEN_ONLY)
97 #define VISKORES_ALWAYS_EXPORT
98 #define VISKORES_NEVER_EXPORT
100 #define VISKORES_ALWAYS_EXPORT __attribute__((visibility("default")))
101 #define VISKORES_NEVER_EXPORT __attribute__((visibility("hidden")))
107 #if defined(VISKORES_CUDA_VERSION_MAJOR) && (VISKORES_CUDA_VERSION_MAJOR < 8)
108 #define VISKORES_STATIC_CONSTEXPR_ARRAY constexpr
112 #elif defined(VISKORES_CUDA_VERSION_MAJOR) && (VISKORES_CUDA_VERSION_MAJOR < 10)
113 #define VISKORES_STATIC_CONSTEXPR_ARRAY static const
115 #define VISKORES_STATIC_CONSTEXPR_ARRAY static constexpr
122 #ifdef VISKORES_CLANG
123 #define VISKORES_SILENCE_WEAK_VTABLE_WARNING_START \
124 _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wweak-vtables\"")
125 #define VISKORES_SILENCE_WEAK_VTABLE_WARNING_END _Pragma("clang diagnostic pop")
126 #else // VISKORES_CLANG
127 #define VISKORES_SILENCE_WEAK_VTABLE_WARNING_START
128 #define VISKORES_SILENCE_WEAK_VTABLE_WARNING_END
129 #endif // VISKORES_CLANG
136 #define viskoresNotUsed(parameter_name)
138 #endif //viskores_internal__ExportMacros_h