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

cleanup comments

This commit is contained in:
Christoph Lehner 2020-08-14 18:39:44 +02:00
parent 06007db3d9
commit 542bdef198

View File

@ -97,15 +97,11 @@ 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++){
@ -120,9 +116,9 @@ int main(int argc, char ** argv) {
else if (SE->_is_local)
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;
check[i] = myStencil.CommBuf()[SE->_offset]; // <-- this is illegal on most GPU setups, host accesses cudaMalloc memory
// std::cout << " receive "<<i<<" " << Check[i]<<std::endl;
// std::cout << " Foo "<<i<<" " << Foo[i]<<std::endl;
}
}