Changed Allreduce to Reduce for CurrentCollector

and DeletionLogger; removed sync_ field copies
This commit is contained in:
2025-10-21 14:26:45 +02:00
parent f5ff3d2f7c
commit f57895bcef
6 changed files with 101 additions and 61 deletions
+8 -8
View File
@@ -5,11 +5,11 @@ DeletionLogger::DeletionLogger(std::vector<DeletionType> used_types,
std::vector<PhysicalDeletionType> used_phys_types) {
for (auto& type : used_types) {
num_deletions[type] = 0;
sync_num_deletions[type] = 0;
// sync_num_deletions[type] = 0;
}
for (auto& type: used_phys_types) {
num_phys_deletions[type] = 0.;
sync_num_phys_deletions[type] = 0.;
// sync_num_phys_deletions[type] = 0.;
}
}
@@ -53,13 +53,13 @@ void DeletionLogger::resetDeletionLogger() {
for(auto& pair : num_deletions) {
pair.second = 0;
}
for (auto& pair : sync_num_deletions) {
pair.second = 0;
}
// for (auto& pair : sync_num_deletions) {
// pair.second = 0;
// }
for(auto& pair : num_phys_deletions) {
pair.second = 0;
}
for (auto& pair : sync_num_phys_deletions) {
pair.second = 0;
}
// for (auto& pair : sync_num_phys_deletions) {
// pair.second = 0;
// }
}