Skip to content

Commit 89102fe

Browse files
std::format --> fmt::format
1 parent 85d4143 commit 89102fe

10 files changed

Lines changed: 22 additions & 22 deletions

File tree

Common/Utils/src/ConfigurableParamHelper.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <boost/property_tree/ptree.hpp>
2727
#include <boost/functional/hash.hpp>
2828
#include <functional>
29-
#include <format>
29+
#include <fmt/format.h>
3030
#ifdef NDEBUG
3131
#undef NDEBUG
3232
#endif

DataFormats/Detectors/ITSMFT/common/src/CompCluster.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "DataFormatsITSMFT/CompCluster.h"
1616
#include <cassert>
1717
#include <iostream>
18-
#include <format>
18+
#include <fmt/format.h>
1919

2020
using namespace o2::itsmft;
2121

DataFormats/Detectors/ITSMFT/common/src/ROFRecord.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// or submit itself to any jurisdiction.
1111

1212
#include <iostream>
13-
#include <format>
13+
#include <fmt/format.h>
1414

1515
#include "DataFormatsITSMFT/ROFRecord.h"
1616
#include "Framework/Logger.h"

Detectors/ITSMFT/ITS/postprocessing/studies/macros/PostTrackExtension.notest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include <memory>
2727
#include <array>
28-
#include <format>
28+
#include <fmt/format.h>
2929
#endif
3030

3131
static constexpr std::array<uint8_t, 9> bitPatternsBefore{15, 30, 31, 60, 62, 63, 120, 124, 126};

Detectors/ITSMFT/ITS/tracking/src/Configuration.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// or submit itself to any jurisdiction.
1111

1212
#include <algorithm>
13-
#include <format>
13+
#include <fmt/format.h>
1414
#include <limits>
1515
#include <string_view>
1616
#include <vector>

Detectors/ITSMFT/ITS/tracking/src/Tracker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "ReconstructionDataFormats/Track.h"
2727
#include <cassert>
28-
#include <format>
28+
#include <fmt/format.h>
2929
#include <cstdlib>
3030
#include <string>
3131
#include <climits>

Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <type_traits>
2121

2222
#ifdef OPTIMISATION_OUTPUT
23-
#include <format>
23+
#include <fmt/format.h>
2424
#include <fstream>
2525
#endif
2626

Detectors/ITSMFT/common/workflow/src/ClusterWriterSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <cctype>
1616
#include <memory>
1717
#include <vector>
18-
#include <format>
18+
#include <fmt/format.h>
1919

2020
#include "Framework/ConcreteDataMatcher.h"
2121
#include "ITSMFTBase/DPLAlpideParam.h"

GPU/GPUTracking/Base/GPUReconstructionDebug.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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;

Steer/DigitizerWorkflow/src/ITSMFTDigitizerSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <TChain.h>
3838
#include <TStopwatch.h>
3939
#include <string>
40-
#include <format>
40+
#include <fmt/format.h>
4141

4242
using namespace o2::framework;
4343
using SubSpecificationType = o2::framework::DataAllocator::SubSpecificationType;

0 commit comments

Comments
 (0)