@@ -215,55 +215,67 @@ void GPUReconstructionCPU::debugWriter::row(char type, uint32_t count, std::stri
215215
216216 if (streamCSV.is_open ()) {
217217 streamCSV << type << " ," ;
218- if (count != 0 )
218+ if (count != 0 ) {
219219 streamCSV << count;
220+ }
220221 streamCSV << " ," << name << " ," ;
221- if (gpu_time != -1.0 )
222+ if (gpu_time != -1.0 ) {
222223 streamCSV << std::format (" {:.0f}" , gpu_time * scale);
224+ }
223225 streamCSV << " ," ;
224- if (cpu_time != -1.0 )
226+ if (cpu_time != -1.0 ) {
225227 streamCSV << std::format (" {:.0f}" , cpu_time * scale);
228+ }
226229 streamCSV << " ," ;
227- if (cpu_time != -1.0 && total_time != -1.0 )
230+ if (cpu_time != -1.0 && total_time != -1.0 ) {
228231 streamCSV << std::format (" {:.2f}" , cpu_time / total_time);
232+ }
229233 streamCSV << " ," ;
230- if (total_time != -1.0 )
234+ if (total_time != -1.0 ) {
231235 streamCSV << std::format (" {:.0f}" , total_time * scale);
236+ }
232237 streamCSV << " ," ;
233- if (memSize != 0 && count != 0 )
238+ if (memSize != 0 && count != 0 ) {
234239 streamCSV << std::format (" {:.3f},{},{}" , memSize / gpu_time * 1e-9 , memSize / mStatNEvents , memSize / mStatNEvents / count);
235- else
240+ } else {
236241 streamCSV << " ,," ;
242+ }
237243 streamCSV << std::endl;
238244 }
239245
240246 if (mMarkdown ) {
241247 std::cout << " | " << type << " | " ;
242- if (count != 0 )
248+ if (count != 0 ) {
243249 std::cout << std::format (" {:6} |" , count);
244- else
250+ } else {
245251 std::cout << " |" ;
252+ }
246253 std::cout << std::format (" {:42}|" , name);
247- if (gpu_time != -1.0 )
254+ if (gpu_time != -1.0 ) {
248255 std::cout << std::format (" {:10.0f} |" , gpu_time * scale);
249- else
256+ } else {
250257 std::cout << " |" ;
251- if (cpu_time != -1.0 )
258+ }
259+ if (cpu_time != -1.0 ) {
252260 std::cout << std::format (" {:10.0f} |" , cpu_time * scale);
253- else
261+ } else {
254262 std::cout << " |" ;
255- if (cpu_time != -1.0 && total_time != -1.0 )
263+ }
264+ if (cpu_time != -1.0 && total_time != -1.0 ) {
256265 std::cout << std::format (" {:8.2f} |" , cpu_time / total_time);
257- else
266+ } else {
258267 std::cout << " |" ;
259- if (total_time != -1.0 )
268+ }
269+ if (total_time != -1.0 ) {
260270 std::cout << std::format (" {:10.0f} |" , total_time * scale);
261- else
271+ } else {
262272 std::cout << " |" ;
263- if (memSize != 0 && count != 0 )
273+ }
274+ if (memSize != 0 && count != 0 ) {
264275 std::cout << std::format (" {:10.3f} |{:14} |{:14} |" , memSize / gpu_time * 1e-9 , memSize / mStatNEvents , memSize / mStatNEvents / count);
265- else
276+ } else {
266277 std::cout << " | | |" ;
278+ }
267279 std::cout << std::endl;
268280 } else {
269281 if (name.substr (0 , 3 ) == " GPU" ) {
0 commit comments