mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-26 05:35:55 +01:00
Compile tests fix
This commit is contained in:
parent
d976e5c514
commit
703dc20377
@ -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 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;}
|
accelerator_inline void vstream(Integer &l, const RealD &r){ l=r;}
|
||||||
template<> accelerator_inline void zeroit(Integer &arg) { arg=0; };
|
template<> accelerator_inline void zeroit(Integer &arg) { arg=0; };
|
||||||
|
|
||||||
accelerator_inline Integer mod (Integer a,Integer y) { return a%y;}
|
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;}
|
//accelerator_inline Integer abs (Integer &a) { return a%y;}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
|
@ -33,6 +33,7 @@ using namespace Grid;
|
|||||||
|
|
||||||
int main (int argc, char ** argv)
|
int main (int argc, char ** argv)
|
||||||
{
|
{
|
||||||
|
#ifndef GRID_NVCC
|
||||||
Grid_init(&argc,&argv);
|
Grid_init(&argc,&argv);
|
||||||
|
|
||||||
auto latt_size = GridDefaultLatt();
|
auto latt_size = GridDefaultLatt();
|
||||||
@ -192,4 +193,5 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
|
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ public:
|
|||||||
FineField vec1(src.Grid());
|
FineField vec1(src.Grid());
|
||||||
FineField vec2(src.Grid());
|
FineField vec2(src.Grid());
|
||||||
|
|
||||||
const Integer block=params.domainsize;
|
const RealD block=params.domainsize;
|
||||||
|
|
||||||
subset=Zero();
|
subset=Zero();
|
||||||
for(int mu=0;mu<Nd;mu++){
|
for(int mu=0;mu<Nd;mu++){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user