24 #ifndef GEOSX_COMMON_GEOSXMACROS_HPP_ 25 #define GEOSX_COMMON_GEOSXMACROS_HPP_ 36 #if defined(__CUDACC__) 37 #define GEOSX_HOST __host__ 38 #define GEOSX_DEVICE __device__ 39 #define GEOSX_HOST_DEVICE __host__ __device__ 40 #define GEOSX_FORCE_INLINE __forceinline__ 41 #define PRAGMA_UNROLL _Pragma("unroll") 47 #define GEOSX_HOST_DEVICE 49 #define GEOSX_FORCE_INLINE inline 66 #define GEOSX_UNUSED_PARAM( X ) 73 template<
typename ... ARGS >
78 #define GEOSX_UNUSED_VAR( ... ) i_g_n_o_r_e( __VA_ARGS__ ); 81 #define GEOSX_DEBUG_VAR( ... ) GEOSX_UNUSED_VAR( __VA_ARGS__ ) 85 #if defined(GEOSX_USE_OPENMP) 86 #define PRAGMA_OMP( clause ) _Pragma( clause ) 90 #define PRAGMA_OMP( clause ) 95 #define GEOSX_RESTRICT LVARRAY_RESTRICT 98 #define GEOSX_RESTRICT_THIS LVARRAY_RESTRICT_THIS 101 #define GEOSX_DECLTYPE_AUTO_RETURN decltype( auto ) 103 #endif // GEOSX_COMMON_GEOSXMACROS_HPP_ #define GEOSX_HOST_DEVICE
Marks a host-device function.
constexpr void i_g_n_o_r_e(ARGS const &...)
Used to silence unused variable warnings, cuda doesn't respect casting to void.
Contains a bunch of macro definitions.