Users/mkuriche/rocprofiler sdk fmt build fix memory header (#2537)

* [rocprofiler-sdk] Fix fmt::join build errors

- remedy use of fmt::join without include <fmt/ranges.h>

* include memory header

* Disable FMT build for SDK CI

* Add -DROCPROFILER_BUILD_FMT=OFF to sanitizer steps

* Add temporary workaround for rccl.h issue

* Add ROCPROFILER_INTERNAL_RCCL_API_TRACE to SDK CI builds

* disable clang-tidy for vendored includes

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Co-authored-by: jbonnell-amd <jason.bonnell@amd.com>
此提交包含在:
Mythreya Kuricheti
2026-01-12 09:59:47 -08:00
提交者 GitHub
父節點 5e15839611
當前提交 36d9d33d90
共有 17 個檔案被更改,包括 31 行新增3 行删除
+3 -1
查看文件
@@ -78,7 +78,9 @@ macro(ROCPROFILER_ACTIVATE_CLANG_TIDY)
"path to clang-tidy executable")
set(CMAKE_CXX_CLANG_TIDY
${ROCPROFILER_CLANG_TIDY_EXE} -header-filter=${PROJECT_SOURCE_DIR}/source/.*
${ROCPROFILER_CLANG_TIDY_EXE}
-header-filter=${PROJECT_SOURCE_DIR}/source/.*
--exclude-header-filter=${PROJECT_SOURCE_DIR}/source/include/rocprofiler-sdk/rccl/details/.*
--warnings-as-errors=*,-misc-header-include-cycle)
# Create a preprocessor definition that depends on .clang-tidy content so the
+1
查看文件
@@ -25,6 +25,7 @@
#include "lib/common/filesystem.hpp"
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <glog/logging.h>
#include <glog/vlog_is_on.h>
+1
查看文件
@@ -56,6 +56,7 @@
#include <rocprofiler-sdk-rocpd/types.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <sqlite3.h>
#include <unistd.h>
+1
查看文件
@@ -33,6 +33,7 @@
#include <rocprofiler-sdk/marker/api_id.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <unistd.h>
#include <cstdint>
+1
查看文件
@@ -31,6 +31,7 @@
#include <rocprofiler-sdk/cxx/operators.hpp>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <sqlite3.h>
#include <iomanip>
+1
查看文件
@@ -54,6 +54,7 @@
#include <rocprofiler-sdk-rocpd/sql.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <gotcha/gotcha.h>
#include <pybind11/detail/common.h>
#include <pybind11/pybind11.h>
+3
查看文件
@@ -23,6 +23,9 @@
#include "lib/python/rocpd/source/serialization/sql.hpp"
#include "lib/output/sql/common.hpp"
#include <fmt/format.h>
#include <fmt/ranges.h>
namespace cereal
{
SQLite3InputArchive::SQLite3InputArchive(sqlite3* conn,
+2
查看文件
@@ -31,6 +31,8 @@
#include "lib/output/generator.hpp"
#include "lib/output/sql/common.hpp"
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <sqlite3.h>
#include <chrono>
+1
查看文件
@@ -79,6 +79,7 @@
#include <rocprofiler-sdk/cxx/operators.hpp>
#include <fmt/core.h>
#include <fmt/ranges.h>
#include <time.h>
#include <unistd.h>
+1
查看文件
@@ -30,6 +30,7 @@
#include <hsa/hsa_ven_amd_aqlprofile.h>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
@@ -39,6 +39,7 @@
#include <rocprofiler-sdk/rocprofiler.h>
#include <fmt/core.h>
#include <fmt/ranges.h>
#include <gtest/gtest.h>
#include <hsa/hsa.h>
#include <hsa/hsa_api_trace.h>
@@ -39,6 +39,7 @@
#include <rocprofiler-sdk/rocprofiler.h>
#include <fmt/core.h>
#include <fmt/ranges.h>
#include <gtest/gtest.h>
#include <hsa/hsa.h>
#include <hsa/hsa_api_trace.h>
+2 -2
查看文件
@@ -31,8 +31,8 @@
#include <hip/hip_deprecated.h>
#include <hip/hip_version.h>
#include "fmt/core.h"
#include "fmt/ranges.h"
#include <fmt/core.h>
#include <fmt/ranges.h>
#define ROCP_SDK_HIP_FORMATTER(TYPE, ...) \
template <> \
+3
查看文件
@@ -22,6 +22,9 @@
#include "lib/rocprofiler-sdk/hsa/queue.hpp"
#include <fmt/format.h>
#include <fmt/ranges.h>
namespace fmt
{
template <>
+2
查看文件
@@ -39,6 +39,8 @@
#include <rocprofiler-sdk/external_correlation.h>
#include <rocprofiler-sdk/fwd.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <hsa/hsa.h>
#include <hsa/hsa_ext_amd.h>
+1
查看文件
@@ -23,6 +23,7 @@
#include <rocprofiler-sdk/cxx/details/tokenize.hpp>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <gtest/gtest.h>
#include <cstddef>