Skip to content
Snippets Groups Projects
Commit 08c3c2de authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Reformat Timer output

parent 27d858aa
No related branches found
No related tags found
1 merge request!104Add Communication Hiding to GPU version
......@@ -575,19 +575,19 @@ void Simulation::run()
if( para->getDoCheckPoint() )
{
output << "Dateien fuer CheckPoint kopieren t=" << t << "...\n";
output << "Copy data for CheckPoint t=" << t << "...\n";
for (int lev=para->getCoarse(); lev <= para->getFine(); lev++)
{
cudaManager->cudaCopyFsForCheckPoint(lev);
}
output << "Dateien fuer CheckPoint schreiben t=" << t << "...";
output << "Write data for CheckPoint t=" << t << "...";
const auto name = getFileName(para->getFName(), t, para->getMyID());
restart_object->serialize(name, para);
output << "\n fertig\n";
output << "\n done\n";
}
//////////////////////////////////////////////////////////////////////////
averageTimer->startTimer();
......@@ -711,7 +711,7 @@ void Simulation::run()
if( para->getPrintFiles() )
{
output << "Dateien schreiben t=" << t << "...";
output << "Write files t=" << t << "... ";
for (int lev=para->getCoarse(); lev <= para->getFine(); lev++)
{
//////////////////////////////////////////////////////////////////////////
......
......@@ -44,15 +44,15 @@ void Timer::outputPerformance(uint t, Parameter* para, vf::gpu::Communicator& co
if(this->firstOutput && communicator.getPID() == 0) //only display the legend once
{
VF_LOG_INFO("PID \t --- {} --- Processing time (ms) \t Nups in Mio \t Bandwidth in GB/sec", this->name );
VF_LOG_INFO("PID \t --- {} --- Processing time (ms) \t Nups in Mio \t Bandwidth in GB/sec", this->name );
this->firstOutput = false;
}
VF_LOG_INFO(" {} \t --- {} --- {}/{} \t {} \t {}", communicator.getPID(), this->name, this->elapsedTime, this->totalElapsedTime, fnups, bandwidth);
VF_LOG_INFO(" {} \t --- {} --- {:>8.1f}/ {:<8.1f} \t {:5.1f} \t {:4.1f}", communicator.getPID(), this->name, this->elapsedTime, this->totalElapsedTime, fnups, bandwidth);
// When using multiple GPUs, sum the nups of all processes
if (communicator.getNummberOfProcess() > 1) {
double nupsSum = communicator.sumNups(fnups);
VF_LOG_INFO("Sum of all {}\t processes: Nups in Mio: {}", communicator.getNummberOfProcess(), nupsSum);
VF_LOG_INFO("Sum of all {}\t processes: Nups in Mio: {:.1f}", communicator.getNummberOfProcess(), nupsSum);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment