Commit 3dbd8925 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Print number of used threads.

parent 380b2633
Pipeline #5547 passed with stages
in 16 minutes and 43 seconds
......@@ -104,8 +104,6 @@ extern "C" void streamGrbDefDataScanningMode(int scanmode);
void setPointSearchMethod(const std::string &methodstr);
#define ITSME (cdo_cmpstr(cdo::Username, "\x6d\x32\x31\x34\x30\x30\x33"))
static void
cdo_stackframe()
{
......
......@@ -20,6 +20,8 @@
#include <vector>
#include <string>
#define ITSME (cdo_cmpstr(cdo::Username, "\x6d\x32\x31\x34\x30\x30\x33"))
namespace cdo
{
extern const char *progname;
......
......@@ -402,7 +402,14 @@ Process::run()
void
Process::printBenchmarks(double p_walltime, const char *p_memstring)
{
if (m_ID == 0) fprintf(stderr, " [%.2fs%s]", p_walltime, p_memstring);
if (m_ID == 0)
{
const auto number_of_used_thread = getProcessNum();
if (ITSME)
fprintf(stderr, " [%.2fs%s %dthread%s]", p_walltime, p_memstring, number_of_used_thread, ADD_PLURAL(number_of_used_thread));
else
fprintf(stderr, " [%.2fs%s]", p_walltime, p_memstring);
}
}
// local helper function
......
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