mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Fix a bug in config count unit test: count number of devices as well
This commit is contained in:
@@ -298,7 +298,9 @@ void test_get_config_count()
|
||||
bench.add_string_axis("baz", {"str", "ing"}); // 2, 72
|
||||
bench.add_string_axis("baz", {"single"}); // 1, 72
|
||||
|
||||
ASSERT_MSG(bench.get_config_count() == 72,
|
||||
auto const num_devices = bench.get_devices().size();
|
||||
|
||||
ASSERT_MSG(bench.get_config_count() == 72 * num_devices,
|
||||
"Got {}",
|
||||
bench.get_config_count());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user