1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-18 07:47:06 +01:00

Enhanced SIMD interfacing

This commit is contained in:
Peter Boyle
2015-05-12 20:41:44 +01:00
parent 65c91eae64
commit 52174da232
15 changed files with 43 additions and 43 deletions

View File

@ -145,7 +145,7 @@ PARALLEL_FOR_LOOP
template<class sobj,class vobj>
inline void axpy(Lattice<vobj> &ret,sobj a,const Lattice<vobj> &lhs,const Lattice<vobj> &rhs){
conformable(lhs,rhs);
PARALLEL_FOR_LOOP
#pragma omp parallel for
for(int ss=0;ss<lhs._grid->oSites();ss++){
vobj tmp = a*lhs._odata[ss];
vstream(ret._odata[ss],tmp+rhs._odata[ss]);