Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit b0749783 authored by adelmann's avatar adelmann :reminder_ribbon:
Browse files

new_reduce was not known, missing include

parent 92944c5e
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
#include "OpalParser/Parser.h"
#include <string>
#include <vector>
#include <memory>
class Object;
class Token;
......
......@@ -162,15 +162,18 @@ void MemoryProfiler::compute(vm_t& vmMin, vm_t& vmMax, vm_t& vmAvg) {
return;
}
new_reduce(vmem_m.data(), vmAvg.data(), vmem_m.size(), std::plus<double>());
// \fixme new_reduce(vmem_m.data(), vmAvg.data(), vmem_m.size(), std::plus<double>());
reduce(vmem_m.data(), vmAvg.data(), vmem_m.size(), std::plus<double>());
double inodes = 1.0 / double(ippl::Comm->size());
for (auto& vm : vmAvg) {
vm *= inodes;
}
new_reduce(vmem_m.data(), vmMin.data(), vmem_m.size(), std::less<double>());
new_reduce(vmem_m.data(), vmMax.data(), vmem_m.size(), std::greater<double>());
//new_reduce(vmem_m.data(), vmMin.data(), vmem_m.size(), std::less<double>());
//new_reduce(vmem_m.data(), vmMax.data(), vmem_m.size(), std::greater<double>());
reduce(vmem_m.data(), vmMin.data(), vmem_m.size(), std::less<double>());
reduce(vmem_m.data(), vmMax.data(), vmem_m.size(), std::greater<double>());
}
void MemoryProfiler::write(const PartBunch_t* beam) {
......
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