From 86ec92f92547cee9991ee8cacb399381b3369171 Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Wed, 25 Mar 2026 16:45:38 +0000 Subject: [PATCH] [rocm-libraries] ROCm/rocm-libraries#5571 (commit 8f60932) [CK] fix clang lifetime bound error in ck_builder. ## Motivation This resolves the compilation error with latest develop compiler branch. ## Technical Details ## Test Plan ## Test Result ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. --- .../include/ck_tile/builder/reflect/tree_formatter.hpp | 2 +- profiler/src/profile_grouped_conv_bwd_weight_tile.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/experimental/builder/include/ck_tile/builder/reflect/tree_formatter.hpp b/experimental/builder/include/ck_tile/builder/reflect/tree_formatter.hpp index 8657e8dd2c..ee18d407c1 100644 --- a/experimental/builder/include/ck_tile/builder/reflect/tree_formatter.hpp +++ b/experimental/builder/include/ck_tile/builder/reflect/tree_formatter.hpp @@ -47,7 +47,7 @@ class TreeFormatter // Add a child node, returns a reference to it for further nesting template - TreeFormatter& add(Args&&... args) + TreeFormatter& add(Args&&... args) [[clang::lifetimebound]] { children_.emplace_back(std::forward(args)...); return children_.back(); diff --git a/profiler/src/profile_grouped_conv_bwd_weight_tile.cpp b/profiler/src/profile_grouped_conv_bwd_weight_tile.cpp index 7ee82fe8a9..46903bd731 100644 --- a/profiler/src/profile_grouped_conv_bwd_weight_tile.cpp +++ b/profiler/src/profile_grouped_conv_bwd_weight_tile.cpp @@ -24,7 +24,7 @@ enum struct ConvLayout NGCHW_GKCYX_NGKHW, // 4 }; -std::ostream& operator<<(std::ostream& os, const ConvLayout& layout) +std::ostream& operator<<([[clang::lifetimebound]] std::ostream& os, const ConvLayout& layout) { using ck::operator<<; switch(layout) @@ -61,7 +61,7 @@ enum struct ConvDataType F32_F32_F32_COMP_TF32 // 6 }; -std::ostream& operator<<(std::ostream& os, const ConvDataType& data_type) +std::ostream& operator<<([[clang::lifetimebound]] std::ostream& os, const ConvDataType& data_type) { using ck::operator<<; switch(data_type)