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

true shm_none implementation with GPUs that disables the use of device shared memory for the stencils

This commit is contained in:
Christoph Lehner
2020-08-14 18:37:00 +02:00
parent 12e6059a70
commit 06007db3d9
2 changed files with 15 additions and 3 deletions

View File

@ -97,11 +97,15 @@ int main(int argc, char ** argv) {
ocoor[dir]=(ocoor[dir]+disp)%Fine._rdimensions[dir];
}
std::cout << GridLogMessage << "A" << std::endl;
SimpleCompressor<vobj> compress;
myStencil.HaloExchange(Foo,compress);
Bar = Cshift(Foo,dir,disp);
std::cout << GridLogMessage << "B" << std::endl;
// Implement a stencil code that should agree with cshift!
for(int i=0;i<Check.Grid()->oSites();i++){
@ -117,8 +121,8 @@ int main(int argc, char ** argv) {
check[i] = foo[SE->_offset];
else {
check[i] = myStencil.CommBuf()[SE->_offset];
// std::cout << " receive "<<i<<" " << Check[i]<<std::endl;
// std::cout << " Foo "<<i<<" " << Foo[i]<<std::endl;
std::cout << " receive "<<i<<" " << check[i]<<std::endl;
std::cout << " Foo "<<i<<" " << foo[i]<<std::endl;
}
}