Skip to content

Commit

Permalink
start timer when starting iterative solver (do not count construction
Browse files Browse the repository at this point in the history
for computing GFlops/s stats)
  • Loading branch information
BrunoLevy committed Nov 19, 2024
1 parent 1d6e4f0 commit 31c6293
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/geogram/NL/nl_amgcl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,21 @@ template <class Backend> NLboolean nlSolveAMGCL_generic() {
amgcl::backend::sort_rows(*M_amgcl);

GEO::Stopwatch* Wbuild = new GEO::Stopwatch("AMGCL build", ctxt->verbose);
if(ctxt->verbose) {
GEO::Logger::out("AMGCL build") << "starting..." << std::endl;
}
Solver solver(M_amgcl,prm);
delete Wbuild;

if(ctxt->verbose) {
GEO::Logger::out("AMGCL") << solver << std::endl;
GEO::Logger::out("AMGCL build") << solver << std::endl;
GEO::Logger::out("AMGCL solve") << "starting..." << std::endl;
}

// Start timer when running iterative solver
// (do not count construction in gflops stats)
nlCurrentContext->start_time = nlCurrentTime();

// There can be several linear systems to solve in OpenNL
for(int k=0; k<ctxt->nb_systems; ++k) {

Expand Down

0 comments on commit 31c6293

Please sign in to comment.