Changed Allreduce to Reduce for CurrentCollector
and DeletionLogger; removed sync_ field copies
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user