[rocm-libraries] ROCm/rocm-libraries#5639 (commit a65e645)

[CK] More lifetime-warning suppression

## Motivation

The staging compiler picked up another change from upstream that leads
to more lifetime-analysis warnings. This breaks the build, given CK is
built with -Werror. As a result, compiler promotion is blocked.

## Technical Details
This patch adds the pragma push diagnostics to ignore the
lifetime-warnings in the modified files to unblock compiler promotion.

## 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:
Jan Patrick Lehr
2026-03-28 11:20:51 +00:00
committed by assistant-librarian[bot]
parent 3b55a05e71
commit b6bbada9f1
8 changed files with 42 additions and 0 deletions

View File

@@ -15,6 +15,9 @@
#include <cstddef>
#include <hip/hip_runtime.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
namespace ck_tile {
template <typename T, typename = void>
@@ -303,3 +306,5 @@ CK_TILE_HOST float launch_kernel_time_mask_flush_cache(const stream_config& s,
}
} // namespace ck_tile
#pragma clang diagnostic pop