mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Makefile rule for simple_* objects
This commit is contained in:
parent
b873504b90
commit
433afd36f5
@ -1 +1,11 @@
|
|||||||
include Make.inc
|
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
|
||||||
|
11
benchmarks/simple_simd_test.cc
Normal file
11
benchmarks/simple_simd_test.cc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include <Grid/Grid.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
@ -25,7 +25,7 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk>
|
|||||||
See the full license in the file "LICENSE" in the top level distribution directory
|
See the full license in the file "LICENSE" in the top level distribution directory
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
/* END LEGAL */
|
/* END LEGAL */
|
||||||
#include <Grid.h>
|
#include <Grid/Grid.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace Grid;
|
using namespace Grid;
|
||||||
|
Loading…
Reference in New Issue
Block a user