From adae0db51afa8f2008b2ad2e1336277fa79b3959 Mon Sep 17 00:00:00 2001 From: Mark Hillebrand Date: Thu, 25 Aug 2016 21:09:32 +0200 Subject: [PATCH] ReaderLib/BlockRandomizer.cpp: report on StartEpoch if verbosity >= 1 --- Source/Readers/ReaderLib/BlockRandomizer.cpp | 21 ++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Source/Readers/ReaderLib/BlockRandomizer.cpp b/Source/Readers/ReaderLib/BlockRandomizer.cpp index c4ac6d6350c8..f7cbf6462ad3 100644 --- a/Source/Readers/ReaderLib/BlockRandomizer.cpp +++ b/Source/Readers/ReaderLib/BlockRandomizer.cpp @@ -78,16 +78,17 @@ void BlockRandomizer::StartEpoch(const EpochConfiguration& config) size_t newOffset = m_sequenceRandomizer->Seek(offsetInSweep, m_sweep); m_globalSamplePosition = m_sweep * m_sweepTotalNumberOfSamples + newOffset; -#ifdef _DEBUG - size_t epochStartFrame = config.m_epochIndex * m_epochSize; - fprintf(stderr, "BlockRandomizer::StartEpoch: epoch %" PRIu64 ": samples [%" PRIu64 "..%" PRIu64 "] (first sequence at sample %" PRIu64 "), worker rank %" PRIu64 ", total workers %" PRIu64 "\n", - config.m_epochIndex + 1, - epochStartFrame, - epochStartFrame + m_epochSize, - m_globalSamplePosition, - config.m_workerRank, - config.m_numberOfWorkers); -#endif + if (m_verbosity >= Notification) + { + size_t epochStartFrame = config.m_epochIndex * m_epochSize; + fprintf(stderr, "BlockRandomizer::StartEpoch: epoch %" PRIu64 ": samples [%" PRIu64 "..%" PRIu64 "] (first sequence at sample %" PRIu64 "), worker rank %" PRIu64 ", total workers %" PRIu64 "\n", + config.m_epochIndex + 1, + epochStartFrame, + epochStartFrame + m_epochSize, + m_globalSamplePosition, + config.m_workerRank, + config.m_numberOfWorkers); + } } // Prepares a new sweep if needed.