Commit 7a5cfaf6 authored by Luka Stanisic's avatar Luka Stanisic

reseting timer at the right place and few whitespace cleanups

parent fb425c69
......@@ -566,12 +566,12 @@ int bioem::run()
{
// *** Calculating convolutions of projection map and crosscorrelations ***
if (Autotuning && !stopTuning) timer.ResetStart();
if (DebugOutput >= 2) timer.ResetStart();
createConvolutedProjectionMap(iOrient, iConv, proj_mapFFT, conv_map, conv_mapFFT, sumCONV, sumsquareCONV);
if (DebugOutput >= 2) printf("\t\tTime Convolution %d %d: %f (rank %d)\n", iOrient, iConv, timer.GetCurrentElapsedTime(), mpi_rank);
if (Autotuning && !stopTuning) timer.ResetStart();
if (DebugOutput >= 2) timer.ResetStart();
myfloat_t amp,pha,env;
......@@ -601,29 +601,29 @@ int bioem::run()
{
if (compTime == 0.) compTime = timer.GetCurrentElapsedTime();
if (best_time==0 || compTime < best_time)
if (best_time==0 || compTime < best_time)
{
best_time = compTime;
best_workload = workload;
}
workload -= 5;
if (workload < 30)
if (workload < 30)
{
stopTuning=true;
workload=best_workload;
}
deviceFinishRun();
rebalance(workload);
deviceStartRun();
}
rebalance(workload);
deviceStartRun();
}
}
if (DebugOutput >= 1)
{
printf("\tTotal time for projection %d: %f (rank %d)\n", iOrient, timer2.GetCurrentElapsedTime(), mpi_rank);
timer2.ResetStart();
}
timer2.ResetStart();
}
}
}
//deallocating fftw_complex vector
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment