Update libspinscale, add debug printing for pcloudStimProd

This commit is contained in:
2026-05-24 16:24:07 -04:00
parent cde2737876
commit f9ac41c56e
2 changed files with 30 additions and 9 deletions
@@ -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
}