2323#include < mutex>
2424#include < filesystem>
2525#include < chrono>
26- #include < format>
26+ #include < fmt/ format.h >
2727#include < iostream>
2828#include < string>
2929
@@ -219,19 +219,19 @@ void GPUReconstructionCPU::debugWriter::row(char type, uint32_t count, std::stri
219219 streamCSV << count;
220220 streamCSV << " ," << name << " ," ;
221221 if (gpu_time != -1.0 )
222- streamCSV << std ::format (" {:.0f}" , gpu_time * scale);
222+ streamCSV << fmt ::format (" {:.0f}" , gpu_time * scale);
223223 streamCSV << " ," ;
224224 if (cpu_time != -1.0 )
225- streamCSV << std ::format (" {:.0f}" , cpu_time * scale);
225+ streamCSV << fmt ::format (" {:.0f}" , cpu_time * scale);
226226 streamCSV << " ," ;
227227 if (cpu_time != -1.0 && total_time != -1.0 )
228- streamCSV << std ::format (" {:.2f}" , cpu_time / total_time);
228+ streamCSV << fmt ::format (" {:.2f}" , cpu_time / total_time);
229229 streamCSV << " ," ;
230230 if (total_time != -1.0 )
231- streamCSV << std ::format (" {:.0f}" , total_time * scale);
231+ streamCSV << fmt ::format (" {:.0f}" , total_time * scale);
232232 streamCSV << " ," ;
233233 if (memSize != 0 && count != 0 )
234- streamCSV << std ::format (" {:.3f},{},{}" , memSize / gpu_time * 1e-9 , memSize / mStatNEvents , memSize / mStatNEvents / count);
234+ streamCSV << fmt ::format (" {:.3f},{},{}" , memSize / gpu_time * 1e-9 , memSize / mStatNEvents , memSize / mStatNEvents / count);
235235 else
236236 streamCSV << " ,," ;
237237 streamCSV << std::endl;
@@ -240,28 +240,28 @@ void GPUReconstructionCPU::debugWriter::row(char type, uint32_t count, std::stri
240240 if (mMarkdown ) {
241241 std::cout << " | " << type << " | " ;
242242 if (count != 0 )
243- std::cout << std ::format (" {:6} |" , count);
243+ std::cout << fmt ::format (" {:6} |" , count);
244244 else
245245 std::cout << " |" ;
246- std::cout << std ::format (" {:42}|" , name);
246+ std::cout << fmt ::format (" {:42}|" , name);
247247 if (gpu_time != -1.0 )
248- std::cout << std ::format (" {:10.0f} |" , gpu_time * scale);
248+ std::cout << fmt ::format (" {:10.0f} |" , gpu_time * scale);
249249 else
250250 std::cout << " |" ;
251251 if (cpu_time != -1.0 )
252- std::cout << std ::format (" {:10.0f} |" , cpu_time * scale);
252+ std::cout << fmt ::format (" {:10.0f} |" , cpu_time * scale);
253253 else
254254 std::cout << " |" ;
255255 if (cpu_time != -1.0 && total_time != -1.0 )
256- std::cout << std ::format (" {:8.2f} |" , cpu_time / total_time);
256+ std::cout << fmt ::format (" {:8.2f} |" , cpu_time / total_time);
257257 else
258258 std::cout << " |" ;
259259 if (total_time != -1.0 )
260- std::cout << std ::format (" {:10.0f} |" , total_time * scale);
260+ std::cout << fmt ::format (" {:10.0f} |" , total_time * scale);
261261 else
262262 std::cout << " |" ;
263263 if (memSize != 0 && count != 0 )
264- std::cout << std ::format (" {:10.3f} |{:14} |{:14} |" , memSize / gpu_time * 1e-9 , memSize / mStatNEvents , memSize / mStatNEvents / count);
264+ std::cout << fmt ::format (" {:10.3f} |{:14} |{:14} |" , memSize / gpu_time * 1e-9 , memSize / mStatNEvents , memSize / mStatNEvents / count);
265265 else
266266 std::cout << " | | |" ;
267267 std::cout << std::endl;
0 commit comments