From a651f1e215515a59abd943f354eff843a343de90 Mon Sep 17 00:00:00 2001 From: Gopesh Bhardwaj Date: Thu, 22 Feb 2024 12:40:23 +0530 Subject: [PATCH] Fixing opensuse compilation (#521) * Fixing opensuse compilation * source formatting (clang-format v11) (#526) Co-authored-by: bgopesh * Update tests/tools/CMakeLists.txt --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bgopesh Co-authored-by: Jonathan R. Madsen [ROCm/rocprofiler-sdk commit: 2d715209537098e7596ee3118b31c9af855425f8] --- .../source/lib/rocprofiler-sdk/counters/tests/core.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/tests/core.cpp b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/tests/core.cpp index 3606de05d0..98195a2f1e 100644 --- a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/tests/core.cpp +++ b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/tests/core.cpp @@ -484,8 +484,10 @@ TEST(core, check_callbacks) &check, &opt_buff_id), "Could not create buffer"); - cb_info->buffer = opt_buff_id; - hsa::Queue::queue_info_session_t sess = {.queue = fq, .correlation_id = &corr_id}; + cb_info->buffer = opt_buff_id; + // hsa::Queue::queue_info_session_t sess = {.queue = fq, .correlation_id = &corr_id}; + hsa::Queue::queue_info_session_t sess = hsa::Queue::queue_info_session_t{.queue = fq}; + sess.correlation_id = &corr_id; counters::inst_pkt_t pkts; pkts.emplace_back( @@ -724,4 +726,4 @@ TEST(core, public_api_iterate_agents) } EXPECT_TRUE(from_api.empty()); } -} \ No newline at end of file +}