From 50d7c0f61d339d4effde1cde97479b87e42250e5 Mon Sep 17 00:00:00 2001 From: Tong Dong Qiu Date: Wed, 23 Mar 2022 17:47:18 +0100 Subject: [PATCH] Tweak verbosity for opencl --- opm/simulators/linalg/bda/opencl/BILU0.cpp | 2 +- opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/linalg/bda/opencl/BILU0.cpp b/opm/simulators/linalg/bda/opencl/BILU0.cpp index 8ee037cbb..96d6fb719 100644 --- a/opm/simulators/linalg/bda/opencl/BILU0.cpp +++ b/opm/simulators/linalg/bda/opencl/BILU0.cpp @@ -269,7 +269,7 @@ bool BILU0::create_preconditioner(BlockedMatrix *mat, BlockedMatrix for (int color = 0; color < numColors; ++color) { const unsigned int firstRow = rowsPerColorPrefix[color]; const unsigned int lastRow = rowsPerColorPrefix[color+1]; - if (verbosity >= 4) { + if (verbosity >= 5) { out << "color " << color << ": " << firstRow << " - " << lastRow << " = " << lastRow - firstRow << "\n"; } OpenclKernels::ILU_decomp(firstRow, lastRow, s.LUvals, s.LUcols, s.LUrows, s.diagIndex, s.invDiagVals, Nb, block_size); diff --git a/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp b/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp index c9d91c029..dec83ce4c 100644 --- a/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp +++ b/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp @@ -370,7 +370,7 @@ void openclSolverBackend::gpu_pbicgstab(WellContributions& wellContr ", time per iteration: " << res.elapsed / it << ", iterations: " << it; OpmLog::info(out.str()); } - if (verbosity >= 4) { + if (verbosity >= 3) { std::ostringstream out; out << "openclSolver::prec_apply: " << t_prec.elapsed() << " s\n"; out << "wellContributions::apply: " << t_well.elapsed() << " s\n";