Skip to content

Commit 9eed5ab

Browse files
authored
Merge pull request #79 from PointKernel/fix-config-count-bug
Fix a bug in config count unit test: count number of devices as well
2 parents 9d655fc + af4c35d commit 9eed5ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/benchmark.cu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ void test_get_config_count()
298298
bench.add_string_axis("baz", {"str", "ing"}); // 2, 72
299299
bench.add_string_axis("baz", {"single"}); // 1, 72
300300

301-
ASSERT_MSG(bench.get_config_count() == 72,
301+
auto const num_devices = bench.get_devices().size();
302+
303+
ASSERT_MSG(bench.get_config_count() == 72 * num_devices,
302304
"Got {}",
303305
bench.get_config_count());
304306
}

0 commit comments

Comments
 (0)