|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
#include "axom/config.hpp"#include <cassert>Macros | |
| #define | AXOM_DEVICE |
| #define | AXOM_HOST_DEVICE |
| CUDA or HIP host/device macros for decorating functions/lambdas. More... | |
| #define | AXOM_HOST |
| #define | AXOM_LAMBDA [=] |
| Convenience macro used for lambda capture by value. More... | |
| #define | AXOM_DEVICE_LAMBDA [=] |
| #define | AXOM_HOST_LAMBDA [=] |
| #define | AXOM_STRINGIFY(x) AXOM_DO_STRINGIFY(x) |
| #define | AXOM_DO_STRINGIFY(x) #x |
| #define | AXOM_PRAGMA(x) _Pragma(AXOM_STRINGIFY(x)) |
| #define | AXOM_SUPPRESS_HD_WARN |
| #define | AXOM_CUDA_TEST(X, Y) TEST(X, Y) |
| Convenience macro used for a gtest that uses cuda. More... | |
| #define | AXOM_SUPPRESS_UBSAN |
| #define | AXOM_UNUSED_PARAM(x) |
| Macro used to silence compiler warnings in methods with unused arguments. More... | |
| #define | AXOM_STATIC_ASSERT(cond) static_assert(cond, #cond) |
| #define | AXOM_STATIC_ASSERT_MSG(cond, MSG) static_assert(cond, MSG) |
| This macro wraps the compile time static_assert functionality so you don't have to provide a message. More... | |
| #define | AXOM_UNUSED_VAR(_x) static_cast<void>(_x) |
| Macro used to silence compiler warnings about variables that are defined but not used. More... | |
| #define | AXOM_DEBUG_PARAM(_x) _x |
| Macro used to silence compiler warnings about parameters that are only used when AXOM_DEBUG is defined. More... | |
| #define | AXOM_MAYBE_UNUSED |
| Macro that is used to silence compiler warnings about variables that might be unused in some build configurations. More... | |
| #define | AXOM_LIKELY(cond) (cond) |
| Macro that is used to annotate for compiler optimizations a conditional that is likely to be true. More... | |
| #define | AXOM_UNLIKELY(cond) (cond) |
| Macro that is used to annotate for compiler optimizations a conditional that is likely to be false. More... | |
| #define | DISABLE_DEFAULT_CTOR(className) className() = delete |
| Macro to disable default constructor for the given class. More... | |
| #define | DISABLE_COPY_AND_ASSIGNMENT(className) |
| Macro to disable copy and assignment operations for the given class. More... | |
| #define | DISABLE_MOVE_AND_ASSIGNMENT(className) |
| Macro to disable move constructor and move assignment operations for the given class. More... | |
| #define | AXOM_TYPED_TEST(CaseName, TestName) |
| Minor tweak of gtest's TYPED_TEST macro to work with device code. More... | |
| #define AXOM_DEVICE |
| #define AXOM_HOST_DEVICE |
CUDA or HIP host/device macros for decorating functions/lambdas.
| #define AXOM_HOST |
| #define AXOM_LAMBDA [=] |
Convenience macro used for lambda capture by value.
| #define AXOM_DEVICE_LAMBDA [=] |
| #define AXOM_HOST_LAMBDA [=] |
| #define AXOM_STRINGIFY | ( | x | ) | AXOM_DO_STRINGIFY(x) |
| #define AXOM_DO_STRINGIFY | ( | x | ) | #x |
| #define AXOM_PRAGMA | ( | x | ) | _Pragma(AXOM_STRINGIFY(x)) |
| #define AXOM_SUPPRESS_HD_WARN |
| #define AXOM_CUDA_TEST | ( | X, | |
| Y | |||
| ) | TEST(X, Y) |
Convenience macro used for a gtest that uses cuda.
| #define AXOM_SUPPRESS_UBSAN |
| #define AXOM_UNUSED_PARAM | ( | x | ) |
Macro used to silence compiler warnings in methods with unused arguments.
| #define AXOM_STATIC_ASSERT | ( | cond | ) | static_assert(cond, #cond) |
| #define AXOM_STATIC_ASSERT_MSG | ( | cond, | |
| MSG | |||
| ) | static_assert(cond, MSG) |
This macro wraps the compile time static_assert functionality so you don't have to provide a message.
| #define AXOM_UNUSED_VAR | ( | _x | ) | static_cast<void>(_x) |
Macro used to silence compiler warnings about variables that are defined but not used.
| #define AXOM_DEBUG_PARAM | ( | _x | ) | _x |
Macro used to silence compiler warnings about parameters that are only used when AXOM_DEBUG is defined.
| #define AXOM_MAYBE_UNUSED |
Macro that is used to silence compiler warnings about variables that might be unused in some build configurations.
| #define AXOM_LIKELY | ( | cond | ) | (cond) |
Macro that is used to annotate for compiler optimizations a conditional that is likely to be true.
| #define AXOM_UNLIKELY | ( | cond | ) | (cond) |
Macro that is used to annotate for compiler optimizations a conditional that is likely to be false.
| #define DISABLE_DEFAULT_CTOR | ( | className | ) | className() = delete |
Macro to disable default constructor for the given class.
| #define DISABLE_COPY_AND_ASSIGNMENT | ( | className | ) |
Macro to disable copy and assignment operations for the given class.
| #define DISABLE_MOVE_AND_ASSIGNMENT | ( | className | ) |
Macro to disable move constructor and move assignment operations for the given class.
| #define AXOM_TYPED_TEST | ( | CaseName, | |
| TestName | |||
| ) |
Minor tweak of gtest's TYPED_TEST macro to work with device code.
gtest/gtest.h