mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-22 17:52:02 +01:00
Sloppy + non-sloppy
This commit is contained in:
@ -81,6 +81,7 @@ int main (int argc, char ** argv)
|
|||||||
//////////////////
|
//////////////////
|
||||||
// Domain decomposed
|
// Domain decomposed
|
||||||
//////////////////
|
//////////////////
|
||||||
|
/*
|
||||||
Coordinate latt4 = GridDefaultLatt();
|
Coordinate latt4 = GridDefaultLatt();
|
||||||
Coordinate mpi = GridDefaultMpi();
|
Coordinate mpi = GridDefaultMpi();
|
||||||
Coordinate CommDim(Nd);
|
Coordinate CommDim(Nd);
|
||||||
@ -88,12 +89,9 @@ int main (int argc, char ** argv)
|
|||||||
GlobalSharedMemory::GetShmDims(mpi,shm);
|
GlobalSharedMemory::GetShmDims(mpi,shm);
|
||||||
|
|
||||||
|
|
||||||
//////////////////////
|
|
||||||
// Node level
|
|
||||||
//////////////////////
|
|
||||||
std::cout << "\n\n\n\n\n\n" <<std::endl;
|
std::cout << "\n\n\n\n\n\n" <<std::endl;
|
||||||
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
||||||
std::cout << GridLogMessage<< " Testing without internode communication " <<std::endl;
|
// std::cout << GridLogMessage<< " Testing without internode communication " <<std::endl;
|
||||||
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
||||||
|
|
||||||
for(int d=0;d<Nd;d++) CommDim[d]= (mpi[d]/shm[d])>1 ? 1 : 0;
|
for(int d=0;d<Nd;d++) CommDim[d]= (mpi[d]/shm[d])>1 ? 1 : 0;
|
||||||
@ -108,12 +106,13 @@ int main (int argc, char ** argv)
|
|||||||
std::cout << "\n\n\n\n\n\n" <<std::endl;
|
std::cout << "\n\n\n\n\n\n" <<std::endl;
|
||||||
|
|
||||||
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
||||||
std::cout << GridLogMessage<< " Testing with sloppy intranode communication " <<std::endl;
|
std::cout << GridLogMessage<< " Testing with sloppy communication " <<std::endl;
|
||||||
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
std::cout << GridLogMessage<< "++++++++++++++++++++++++++++++++++++++++++++++++" <<std::endl;
|
||||||
|
|
||||||
for(int d=0;d<Nd;d++) CommDim[d]= mpi[d]>1 ? 1 : 0;
|
for(int d=0;d<Nd;d++) CommDim[d]= mpi[d]>1 ? 1 : 0;
|
||||||
|
|
||||||
Benchmark(Ls,Dirichlet,true);
|
Benchmark(Ls,Dirichlet,true);
|
||||||
|
*/
|
||||||
|
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
exit(0);
|
exit(0);
|
||||||
|
Reference in New Issue
Block a user