[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

<!-- Explain the changes along with any relevant GitHub links. -->

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
This commit is contained in:
Illia Silin
2026-03-25 16:45:38 +00:00
committed by assistant-librarian[bot]
parent bee61860c2
commit 86ec92f925
2 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ class TreeFormatter
// Add a child node, returns a reference to it for further nesting
template <typename... Args>
TreeFormatter& add(Args&&... args)
TreeFormatter& add(Args&&... args) [[clang::lifetimebound]]
{
children_.emplace_back(std::forward<Args>(args)...);
return children_.back();

View File

@@ -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)