mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Merge branch 'develop' of https://github.com/Heinrich-BR/Grid into develop
This commit is contained in:
commit
d38ae2fd18
@ -51,9 +51,9 @@ template<class vobj> inline void pickCheckerboard(int cb,Lattice<vobj> &half,con
|
|||||||
{
|
{
|
||||||
half.Checkerboard() = cb;
|
half.Checkerboard() = cb;
|
||||||
|
|
||||||
autoView( half_v, half, AcceleratorWrite);
|
autoView( half_v, half, CpuWrite);
|
||||||
autoView( full_v, full, AcceleratorRead);
|
autoView( full_v, full, CpuRead);
|
||||||
accelerator_for(ss, full.Grid()->oSites(),full.Grid()->Nsimd(),{
|
thread_for(ss, full.Grid()->oSites(),{
|
||||||
int cbos;
|
int cbos;
|
||||||
Coordinate coor;
|
Coordinate coor;
|
||||||
full.Grid()->oCoorFromOindex(coor,ss);
|
full.Grid()->oCoorFromOindex(coor,ss);
|
||||||
@ -68,9 +68,9 @@ template<class vobj> inline void pickCheckerboard(int cb,Lattice<vobj> &half,con
|
|||||||
template<class vobj> inline void setCheckerboard(Lattice<vobj> &full,const Lattice<vobj> &half)
|
template<class vobj> inline void setCheckerboard(Lattice<vobj> &full,const Lattice<vobj> &half)
|
||||||
{
|
{
|
||||||
int cb = half.Checkerboard();
|
int cb = half.Checkerboard();
|
||||||
autoView( half_v , half, AcceleratorRead);
|
autoView( half_v , half, CpuRead);
|
||||||
autoView( full_v , full, AcceleratorWrite);
|
autoView( full_v , full, CpuWrite);
|
||||||
accelerator_for(ss, full.Grid()->oSites(),full.Grid()->Nsimd(),{
|
thread_for(ss,full.Grid()->oSites(),{
|
||||||
|
|
||||||
Coordinate coor;
|
Coordinate coor;
|
||||||
int cbos;
|
int cbos;
|
||||||
|
Loading…
Reference in New Issue
Block a user