Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Morpheus_Macros.hpp
1
24#ifndef MORPHEUS_MACROS_HPP
25#define MORPHEUS_MACROS_HPP
26
27#include <MorpheusCore_config.hpp>
28
29#if defined(MORPHEUS_ENABLE_CUDA) || defined(MORPHEUS_ENABLE_HIP)
30#define MORPHEUS_INLINE_FUNCTION inline __device__ __host__
31#define MORPHEUS_LAMBDA [=] __device__
32#else
33#define MORPHEUS_INLINE_FUNCTION inline
34#define MORPHEUS_LAMBDA [=]
35#endif
36
37#define MORPHEUS_FORCEINLINE_FUNCTION KOKKOS_FORCEINLINE_FUNCTION
38
39#endif // MORPHEUS_MACROS_HPP