Go to the source code of this file.
◆ CHECK_TIMER
#define CHECK_TIMER |
( |
| _index_, |
|
|
| _name_ ) |
Value: { \
auto& timer = seq->timers.at(_index_); \
const auto duration = timer.template duration<unit_t>(); \
ASSERT_GT(duration, sleep_for) << #_name_; \
}
std::chrono::duration< double, std::ratio< 1, 1 > > seconds
Similar to std::chrono::seconds, but using double instead of an integer type to represent the tick co...
◆ DO_A_REGION
#define DO_A_REGION |
( |
| _name_ | ) |
|
Value:
region_##_name_##_outer.reset(); \
Kokkos::Profiling::pushRegion("region " #_name_); \
std::this_thread::sleep_for(sleep_for); \
Kokkos::Profiling::popRegion(); \
const auto region_##_name_##_elapsed = region_##_name_##_outer.seconds();