[rocm-libraries] ROCm/rocm-libraries#4419 (commit e241f8b)

[CK] Work around staging compiler lifetime warning

## Motivation
The staging compiler enables lifetime-safety warnings and we already
worked around a few of them.
This works around a few more instances that came up recently on gfx950
builds.
The initial PR that resolved most issues:
https://github.com/ROCm/composable_kernel/pull/3640

## Technical Details
This follows the pattern to locally ignore the newly added
lifetime-safety warnings that were moved from experimental to production
in upstream LLVM.
As a result, CK turned them on and treats them as errors, which prevents
the staging compiler from building CK.

## Test Plan

## Test Result

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.

Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com>
This commit is contained in:
Jan Patrick Lehr
2026-02-12 22:12:57 +00:00
committed by assistant-librarian[bot]
parent dae352e8dc
commit 9c2dd2941b
2 changed files with 8 additions and 0 deletions

View File

@@ -12,6 +12,9 @@
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
namespace ck {
namespace tensor_operation {
namespace device {
@@ -57,3 +60,4 @@ void add_device_gemm_wmma_multi_abd_bf16_i8_bf16_mk_kn_mn_gelu_v1_instances(
} // namespace device
} // namespace tensor_operation
} // namespace ck
#pragma clang diagnostic pop