Go to the documentation of this file.
10 #ifndef vtk_m_internal__ExportMacros_h
11 #define vtk_m_internal__ExportMacros_h
13 #include <vtkm/internal/Configure.h>
21 #include "hip/hip_runtime.h"
22 #define VTKM_EXEC __device__ __host__
23 #define VTKM_EXEC_CONT __device__ __host__
24 #define VTKM_SUPPRESS_EXEC_WARNINGS
26 #elif defined(VTKM_CUDA)
28 #define VTKM_EXEC __device__ __host__
29 #define VTKM_EXEC_CONT __device__ __host__
33 #if __CUDAVER__ >= 75000
34 #define VTKM_SUPPRESS_EXEC_WARNINGS __pragma(nv_exec_check_disable)
36 #define VTKM_SUPPRESS_EXEC_WARNINGS __pragma(hd_warning_disable)
41 #if __CUDAVER__ >= 75000
42 #define VTKM_SUPPRESS_EXEC_WARNINGS _Pragma("nv_exec_check_disable")
44 #define VTKM_SUPPRESS_EXEC_WARNINGS _Pragma("hd_warning_disable")
52 #define VTKM_EXEC_CONT
53 #define VTKM_SUPPRESS_EXEC_WARNINGS
88 #if defined(VTKM_MSVC) || defined(VTKM_CUDA)
89 #define VTKM_ALWAYS_EXPORT
90 #define VTKM_NEVER_EXPORT
92 #define VTKM_ALWAYS_EXPORT __attribute__((visibility("default")))
93 #define VTKM_NEVER_EXPORT __attribute__((visibility("hidden")))
99 #if defined(VTKM_CUDA_VERSION_MAJOR) && (VTKM_CUDA_VERSION_MAJOR < 8)
100 #define VTKM_STATIC_CONSTEXPR_ARRAY constexpr
104 #elif defined(VTKM_CUDA_VERSION_MAJOR) && (VTKM_CUDA_VERSION_MAJOR < 10)
105 #define VTKM_STATIC_CONSTEXPR_ARRAY static const
107 #define VTKM_STATIC_CONSTEXPR_ARRAY static constexpr
115 #define VTKM_SILENCE_WEAK_VTABLE_WARNING_START \
116 _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wweak-vtables\"")
117 #define VTKM_SILENCE_WEAK_VTABLE_WARNING_END _Pragma("clang diagnostic pop")
119 #define VTKM_SILENCE_WEAK_VTABLE_WARNING_START
120 #define VTKM_SILENCE_WEAK_VTABLE_WARNING_END
128 #define vtkmNotUsed(parameter_name)
130 #endif //vtk_m_internal__ExportMacros_h