From 69e8bac5e12a465bd2e49900b369e053bee54549 Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Thu, 12 Nov 2020 07:25:57 +0000 Subject: move "keep as-is" optimizers * from eval/tensor/dense to eval/instruction * minimal changes to track move in this commit --- .../tests/tensor/instruction_benchmark/instruction_benchmark.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp') diff --git a/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp b/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp index 9ea27ff2f10..8887f2cb6aa 100644 --- a/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp +++ b/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp @@ -705,6 +705,12 @@ TEST(DenseJoin, no_overlap) { benchmark_join("dense no overlap multiply", lhs, rhs, operation::Mul::f); } +TEST(DenseJoin, simple_expand) { + auto lhs = make_cube(D::idx("a", 5), D::idx("b", 4), D::idx("c", 4), 1.0); + auto rhs = make_cube(D::idx("d", 4), D::idx("e", 4), D::idx("f", 5), 2.0); + benchmark_join("dense simple expand multiply", lhs, rhs, operation::Mul::f); +} + TEST(DenseJoin, multiply_by_number) { auto lhs = make_spec(3.0); auto rhs = make_cube(D::idx("a", 16), D::idx("b", 16), D::idx("c", 16), 2.0); -- cgit v1.2.3