[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

@@ -10,6 +10,9 @@
#include "ck/utility/tuple_helper.hpp"
#include "ck/tensor_description/tensor_adaptor.hpp"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
namespace ck {
namespace detail {
@@ -191,3 +194,5 @@ struct SpaceFillingCurve
};
} // namespace ck
#pragma clang diagnostic pop

View File

@@ -9,6 +9,9 @@
#include <type_traits>
#include <cassert>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
namespace ck {
template <typename TData, index_t NSize>
@@ -78,4 +81,7 @@ __host__ __device__ constexpr auto make_array()
}
} // namespace ck
#pragma clang diagnostic pop
#endif

View File

@@ -12,6 +12,9 @@
#include "ck/utility/functional.hpp"
#include "ck/utility/math.hpp"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
namespace ck {
template <index_t, index_t, index_t>
@@ -1016,6 +1019,8 @@ using uniform_sequence_gen_t = typename uniform_sequence_gen<NSize, I>::type;
} // namespace ck
#pragma clang diagnostic pop
#if !defined(__HIPCC_RTC__) || !defined(CK_CODE_GEN_RTC)
template <ck::index_t... Is>
std::ostream& operator<<(std::ostream& os, const ck::Sequence<Is...>)

View File

@@ -7,6 +7,9 @@
#include "functional2.hpp"
#include "tuple.hpp"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
namespace ck {
namespace detail {
@@ -102,4 +105,7 @@ struct StaticallyIndexedArray_v2
};
} // namespace ck
#pragma clang diagnostic pop
#endif