Criterion registration macro

This commit is contained in:
Georgy Evtushenko
2024-01-08 14:20:17 -08:00
parent fade52fa2e
commit 2dd4c18e2f
2 changed files with 10 additions and 2 deletions

View File

@@ -65,8 +65,7 @@ public:
};
// Register the criterion with NVBench:
static nvbench::stopping_criterion& criterion_ref = //
nvbench::criterion_manager::get().add(std::make_unique<fixed_criterion>());
NVBENCH_REGISTER_CRITERION(fixed_criterion);
void throughput_bench(nvbench::state &state)
{