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)