1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Compile tests fix

This commit is contained in:
Peter Boyle 2019-06-16 13:59:29 +01:00
parent d976e5c514
commit 703dc20377
3 changed files with 5 additions and 1 deletions

View File

@ -194,7 +194,9 @@ accelerator_inline void sub (Integer * __restrict__ y,const Integer * __restrict
accelerator_inline void add (Integer * __restrict__ y,const Integer * __restrict__ l,const Integer *__restrict__ r){ *y = (*l) + (*r); }
accelerator_inline void vstream(Integer &l, const RealD &r){ l=r;}
template<> accelerator_inline void zeroit(Integer &arg) { arg=0; };
accelerator_inline Integer mod (Integer a,Integer y) { return a%y;}
accelerator_inline Integer div (Integer a,Integer y) { return a/y;}
//accelerator_inline Integer abs (Integer &a) { return a%y;}
//////////////////////////////////////////////////////////

View File

@ -33,6 +33,7 @@ using namespace Grid;
int main (int argc, char ** argv)
{
#ifndef GRID_NVCC
Grid_init(&argc,&argv);
auto latt_size = GridDefaultLatt();
@ -192,4 +193,5 @@ int main (int argc, char ** argv)
Grid_finalize();
#endif
}

View File

@ -242,7 +242,7 @@ public:
FineField vec1(src.Grid());
FineField vec2(src.Grid());
const Integer block=params.domainsize;
const RealD block=params.domainsize;
subset=Zero();
for(int mu=0;mu<Nd;mu++){