diff --git a/benchmarks/Makefile.am b/benchmarks/Makefile.am index 60b82dd7..1b345fd2 100644 --- a/benchmarks/Makefile.am +++ b/benchmarks/Makefile.am @@ -1 +1,11 @@ include Make.inc + +simple: simple_su3_test.o simple_su3_expr.o simple_simd_test.o + +EXTRA_LIBRARIES = libsimple_su3_test.a libsimple_su3_expr.a libsimple_simd_test.a + +libsimple_su3_test_a_SOURCES = simple_su3_test.cc + +libsimple_su3_expr_a_SOURCES = simple_su3_expr.cc + +libsimple_simd_test_a_SOURCES = simple_simd_test.cc diff --git a/benchmarks/simple_simd_test.cc b/benchmarks/simple_simd_test.cc new file mode 100644 index 00000000..3d5651e4 --- /dev/null +++ b/benchmarks/simple_simd_test.cc @@ -0,0 +1,11 @@ +#include + +Grid::vRealD add(const Grid::vRealD &x, const Grid::vRealD &y) +{ + return x+y; +} + +Grid::vRealD sub(const Grid::vRealD &x, const Grid::vRealD &y) +{ + return x-y; +} diff --git a/benchmarks/simple_su3_expr.cc b/benchmarks/simple_su3_expr.cc index 11a4816e..0c6092f6 100644 --- a/benchmarks/simple_su3_expr.cc +++ b/benchmarks/simple_su3_expr.cc @@ -25,7 +25,7 @@ Author: Peter Boyle See the full license in the file "LICENSE" in the top level distribution directory *************************************************************************************/ /* END LEGAL */ -#include +#include using namespace std; using namespace Grid;