From e25e9dea61355b0fb45e718b647eb717fc3ba3fb Mon Sep 17 00:00:00 2001 From: Marcel Breyer Date: Wed, 9 Oct 2024 16:41:55 +0200 Subject: [PATCH] Add missing "fmt/chrono.h" includes. --- src/hws/cpu/hardware_sampler.cpp | 1 + src/hws/event.cpp | 1 + src/hws/gpu_amd/hardware_sampler.cpp | 1 + src/hws/gpu_intel/hardware_sampler.cpp | 1 + src/hws/gpu_nvidia/hardware_sampler.cpp | 1 + 5 files changed, 5 insertions(+) diff --git a/src/hws/cpu/hardware_sampler.cpp b/src/hws/cpu/hardware_sampler.cpp index 505e0bb..5052a5e 100644 --- a/src/hws/cpu/hardware_sampler.cpp +++ b/src/hws/cpu/hardware_sampler.cpp @@ -13,6 +13,7 @@ #include "hws/sample_category.hpp" // hws::sample_category #include "hws/utility.hpp" // hws::detail::{split, split_as, trim, convert_to, starts_with} +#include "fmt/chrono.h" // direct formatting of std::chrono types #include "fmt/format.h" // fmt::format #include "fmt/ranges.h" // fmt::join diff --git a/src/hws/event.cpp b/src/hws/event.cpp index 373990e..5bf561e 100644 --- a/src/hws/event.cpp +++ b/src/hws/event.cpp @@ -7,6 +7,7 @@ #include "hws/event.hpp" +#include "fmt/chrono.h" // direct formatting of std::chrono types #include "fmt/format.h" // fmt::format #include // std::ostream diff --git a/src/hws/gpu_amd/hardware_sampler.cpp b/src/hws/gpu_amd/hardware_sampler.cpp index 6d52e03..7c0a6a2 100644 --- a/src/hws/gpu_amd/hardware_sampler.cpp +++ b/src/hws/gpu_amd/hardware_sampler.cpp @@ -13,6 +13,7 @@ #include "hws/sample_category.hpp" // hws::sample_category #include "hws/utility.hpp" // hws::detail::time_points_to_epoch +#include "fmt/chrono.h" // direct formatting of std::chrono types #include "fmt/format.h" // fmt::format #include "fmt/ranges.h" // fmt::join #include "hip/hip_runtime_api.h" // HIP runtime functions diff --git a/src/hws/gpu_intel/hardware_sampler.cpp b/src/hws/gpu_intel/hardware_sampler.cpp index 0be124e..2c703e9 100644 --- a/src/hws/gpu_intel/hardware_sampler.cpp +++ b/src/hws/gpu_intel/hardware_sampler.cpp @@ -14,6 +14,7 @@ #include "hws/sample_category.hpp" // hws::sample_category #include "hws/utility.hpp" // hws::{durations_from_reference_time, join} +#include "fmt/chrono.h" // direct formatting of std::chrono types #include "fmt/format.h" // fmt::format #include "level_zero/ze_api.h" // Level Zero runtime functions #include "level_zero/zes_api.h" // Level Zero runtime functions diff --git a/src/hws/gpu_nvidia/hardware_sampler.cpp b/src/hws/gpu_nvidia/hardware_sampler.cpp index 9c2a927..d11fcd3 100644 --- a/src/hws/gpu_nvidia/hardware_sampler.cpp +++ b/src/hws/gpu_nvidia/hardware_sampler.cpp @@ -14,6 +14,7 @@ #include "hws/sample_category.hpp" // hws::sample_category #include "hws/utility.hpp" // hws::detail::time_points_to_epoch +#include "fmt/chrono.h" // direct formatting of std::chrono types #include "fmt/format.h" // fmt::format #include "fmt/ranges.h" // fmt::join #include "nvml.h" // NVML runtime functions