mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Hadrons: code cleaning
This commit is contained in:
parent
07a0ef3f95
commit
603d59f389
@ -60,7 +60,7 @@ Application::Application(void)
|
|||||||
LOG(Message) << "MPI partition : " << mpi << std::endl;
|
LOG(Message) << "MPI partition : " << mpi << std::endl;
|
||||||
LOG(Message) << "Local lattice : " << loc << std::endl;
|
LOG(Message) << "Local lattice : " << loc << std::endl;
|
||||||
LOG(Message) << std::endl;
|
LOG(Message) << std::endl;
|
||||||
LOG(Message) << "** Default parameters (and associated C macro)" << std::endl;
|
LOG(Message) << "** Default parameters (and associated C macros)" << std::endl;
|
||||||
LOG(Message) << "ASCII output precision : " << MACOUT(DEFAULT_ASCII_PREC) << std::endl;
|
LOG(Message) << "ASCII output precision : " << MACOUT(DEFAULT_ASCII_PREC) << std::endl;
|
||||||
LOG(Message) << "Fermion implementation : " << MACOUTS(FIMPL) << std::endl;
|
LOG(Message) << "Fermion implementation : " << MACOUTS(FIMPL) << std::endl;
|
||||||
LOG(Message) << "z-Fermion implementation: " << MACOUTS(ZFIMPL) << std::endl;
|
LOG(Message) << "z-Fermion implementation: " << MACOUTS(ZFIMPL) << std::endl;
|
||||||
|
@ -182,6 +182,7 @@ void Hadrons::printTimeProfile(const std::map<std::string, GridTime> &timing,
|
|||||||
std::map<Count, std::string, std::greater<Count>> rtiming;
|
std::map<Count, std::string, std::greater<Count>> rtiming;
|
||||||
const double dtotal = static_cast<double>(total.count());
|
const double dtotal = static_cast<double>(total.count());
|
||||||
auto cf = std::cout.flags();
|
auto cf = std::cout.flags();
|
||||||
|
auto p = std::cout.precision();
|
||||||
unsigned int width = 0;
|
unsigned int width = 0;
|
||||||
|
|
||||||
for (auto &t: timing)
|
for (auto &t: timing)
|
||||||
@ -198,4 +199,5 @@ void Hadrons::printTimeProfile(const std::map<std::string, GridTime> &timing,
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
std::cout.flags(cf);
|
std::cout.flags(cf);
|
||||||
|
std::cout.precision(p);
|
||||||
}
|
}
|
||||||
|
@ -637,10 +637,6 @@ VirtualMachine::Program VirtualMachine::schedule(const GeneticPar &par)
|
|||||||
#define SEP "----------------"
|
#define SEP "----------------"
|
||||||
#define SMALL_SEP "................"
|
#define SMALL_SEP "................"
|
||||||
#define MEM_MSG(size) sizeString(size)
|
#define MEM_MSG(size) sizeString(size)
|
||||||
#define PRINT_TIME(name, t, total) \
|
|
||||||
std::right << std::setw(30) << name << ": " << t.count() << " us (" \
|
|
||||||
<< std::fixed << std::setprecision(1) \
|
|
||||||
<< static_cast<double>((t).count())/total*100 << "%)"
|
|
||||||
|
|
||||||
void VirtualMachine::executeProgram(const Program &p)
|
void VirtualMachine::executeProgram(const Program &p)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user