1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-17 15:27:06 +01:00

Comms and memory benchmarks added

This commit is contained in:
Peter Boyle
2015-05-03 09:44:47 +01:00
parent 253362f978
commit 9d93d1e6d4
14 changed files with 300 additions and 59 deletions

View File

@ -10,10 +10,13 @@ namespace Grid {
typedef dvec vector_type;
typedef RealD scalar_type;
vRealD(){};
vRealD()=default;
vRealD(RealD a){
vsplat(*this,a);
};
vRealD(Zero &zero){
zeroit(*this);
}
friend inline void mult(vRealD * __restrict__ y,const vRealD * __restrict__ l,const vRealD *__restrict__ r) {*y = (*l) * (*r);}
friend inline void sub (vRealD * __restrict__ y,const vRealD * __restrict__ l,const vRealD *__restrict__ r) {*y = (*l) - (*r);}