1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-10 06:00:45 +01: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]; ocoor[dir]=(ocoor[dir]+disp)%Fine._rdimensions[dir];
} }
std::cout << GridLogMessage << "A" << std::endl;
SimpleCompressor<vobj> compress; SimpleCompressor<vobj> compress;
myStencil.HaloExchange(Foo,compress); myStencil.HaloExchange(Foo,compress);
Bar = Cshift(Foo,dir,disp); Bar = Cshift(Foo,dir,disp);
std::cout << GridLogMessage << "B" << std::endl;
// Implement a stencil code that should agree with cshift! // Implement a stencil code that should agree with cshift!
for(int i=0;i<Check.Grid()->oSites();i++){ for(int i=0;i<Check.Grid()->oSites();i++){
@ -120,9 +116,9 @@ int main(int argc, char ** argv) {
else if (SE->_is_local) else if (SE->_is_local)
check[i] = foo[SE->_offset]; check[i] = foo[SE->_offset];
else { else {
check[i] = myStencil.CommBuf()[SE->_offset]; 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 << " receive "<<i<<" " << Check[i]<<std::endl;
std::cout << " Foo "<<i<<" " << foo[i]<<std::endl; // std::cout << " Foo "<<i<<" " << Foo[i]<<std::endl;
} }
} }