Skip to content
Snippets Groups Projects
Commit 6f36b307 authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

algo: Annotate Unpack timers to calculate throughput.

parent 3055ed78
No related branches found
No related tags found
1 merge request!1349algo: Annotate Unpack timers to calculate throughput.
Pipeline #24351 passed
......@@ -177,6 +177,7 @@ namespace cbm::algo
genericMonitor.fNumBytes += sizeBytes;
xpu::push_timer("Unpack");
xpu::t_add_bytes(sizeBytes);
#pragma omp parallel for schedule(dynamic)
for (size_t i = 0; i < numMs; i++) {
auto result = algos.at(msEqIds[i])(msContent[i], msDesc[i], ts.start_time());
......@@ -185,16 +186,16 @@ namespace cbm::algo
}
xpu::pop_timer();
xpu::push_timer("Resize");
size_t nDigisTotal = 0;
for (const auto& digis : msDigis) {
nDigisTotal += digis.size();
}
xpu::push_timer("Resize");
digisOut.resize(nDigisTotal);
xpu::pop_timer();
xpu::push_timer("Merge");
xpu::t_add_bytes(nDigisTotal * sizeof(Digi));
#pragma omp parallel for schedule(dynamic)
for (unsigned int i = 0; i < numMs; i++) {
unsigned int offset = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment