Update libspinscale, add debug printing for pcloudStimProd
This commit is contained in:
+1
-1
Submodule libspinscale updated: a14d622eaf...ca2cccaa9c
@@ -1,6 +1,8 @@
|
||||
#include <config.h>
|
||||
#include <opts.h>
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <ctime>
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <iomanip>
|
||||
@@ -19,6 +21,10 @@
|
||||
#define SMO_DEBUG_PCLOUD_AMBIENCE_INTRIN 0
|
||||
#endif
|
||||
|
||||
#ifndef SMO_PRINT_PCLOUD_STAGE_DURATIONS
|
||||
#define SMO_PRINT_PCLOUD_STAGE_DURATIONS 1
|
||||
#endif
|
||||
|
||||
namespace smo {
|
||||
namespace stim_buff {
|
||||
|
||||
@@ -708,14 +714,29 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// Print execution durations
|
||||
auto assemblyDuration = pcloudProducer.ioUringAssemblyEngine.getAssemblyDuration();
|
||||
auto compactDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCompactKernelDuration();
|
||||
auto collateDuration = pcloudProducer.openClCollatingAndMeshingEngine.getCollateKernelDuration();
|
||||
std::cout << __func__ << ": Successfully compacted and collated frame: assemblyDuration=" << assemblyDuration.count()
|
||||
<< "ms, compactKernelDuration=" << compactDuration.count()
|
||||
<< "ms, collateKernelDuration=" << collateDuration.count() << "ms" << std::endl;
|
||||
#if SMO_PRINT_PCLOUD_STAGE_DURATIONS
|
||||
const auto logNow = std::chrono::system_clock::now();
|
||||
const std::time_t logTime =
|
||||
std::chrono::system_clock::to_time_t(logNow);
|
||||
const auto logSubsecMs =
|
||||
std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
logNow.time_since_epoch()) % 1000;
|
||||
auto assemblyDuration =
|
||||
pcloudProducer.ioUringAssemblyEngine.getAssemblyDuration();
|
||||
auto compactDuration =
|
||||
pcloudProducer.openClCollatingAndMeshingEngine
|
||||
.getCompactKernelDuration();
|
||||
auto collateDuration =
|
||||
pcloudProducer.openClCollatingAndMeshingEngine
|
||||
.getCollateKernelDuration();
|
||||
std::cout << std::put_time(std::localtime(&logTime), "%T")
|
||||
<< '.' << std::setfill('0') << std::setw(3)
|
||||
<< logSubsecMs.count() << ' '
|
||||
<< __func__ << ": stage durations: assembly="
|
||||
<< assemblyDuration.count()
|
||||
<< "ms, compactKernel=" << compactDuration.count()
|
||||
<< "ms, collateKernel=" << collateDuration.count()
|
||||
<< "ms" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user