@@ -120,17 +120,17 @@ struct OperationLogger : gko::log::Logger {
120
120
for (const auto &entry : work) {
121
121
add_or_set_member (work_object, entry.first .c_str (),
122
122
rapidjson::Value (rapidjson::kObjectType ), alloc);
123
- work_object[entry.first .c_str ()]. AddMember (
124
- " flops " , entry.second .flops / repetitions, alloc);
125
- work_object[entry.first .c_str ()]. AddMember (
126
- " memory " , entry.second .memory_volume / repetitions, alloc);
123
+ add_or_set_member ( work_object[entry.first .c_str ()], " flops " ,
124
+ entry.second .flops / repetitions, alloc);
125
+ add_or_set_member ( work_object[entry.first .c_str ()], " memory " ,
126
+ entry.second .memory_volume / repetitions, alloc);
127
127
}
128
128
add_or_set_member (work_object, " total" ,
129
129
rapidjson::Value (rapidjson::kObjectType ), alloc);
130
- work_object[" total" ]. AddMember ( " flops " , total_work. flops / repetitions ,
131
- alloc);
132
- work_object[" total" ]. AddMember (
133
- " memory " , total_work.memory_volume / repetitions, alloc);
130
+ add_or_set_member ( work_object[" total" ], " flops" ,
131
+ total_work. flops / repetitions, alloc);
132
+ add_or_set_member ( work_object[" total" ], " memory " ,
133
+ total_work.memory_volume / repetitions, alloc);
134
134
}
135
135
136
136
OperationLogger (std::shared_ptr<const gko::Executor> exec, bool nested_name)
0 commit comments