mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-13 01:36:06 +00:00
[rocm-libraries] ROCm/rocm-libraries#7111 (commit 651947f)
[CK] Fix latest batch of staging compiler warnings ## Motivation Suppress the new batch of clang lifetimebound and invalidation warnings with the latest staging compiler. ## 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:
committed by
assistant-librarian[bot]
parent
41064d8684
commit
b05040b919
@@ -22,6 +22,8 @@
|
||||
#define CK_TILE_FMHA_ENABLE_HEAD_GROUPING 1
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
#if CK_TILE_FMHA_ENABLE_HEAD_GROUPING
|
||||
CK_TILE_DECLARE_ENV_VAR_BOOL(CK_TILE_FMHA_HEAD_GROUP_LOG)
|
||||
CK_TILE_DECLARE_ENV_VAR_BOOL(CK_TILE_FMHA_DISABLE_HEAD_GROUPING)
|
||||
@@ -427,3 +429,4 @@ float run_fwd_head_grouped(const ck_tile::stream_config& sc,
|
||||
|
||||
} // namespace fmha_fwd_head_grouping
|
||||
#endif // CK_TILE_FMHA_ENABLE_HEAD_GROUPING
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#error "we should enable fmha_fwd_splitkv() api in order to cooperate with fmha_fwd_appendkv()"
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
enum class fwd_result
|
||||
{
|
||||
success,
|
||||
@@ -2484,3 +2486,4 @@ fwd_result fmha_fwd_run(mode_enum mode,
|
||||
|
||||
return pass ? fwd_result::success : fwd_result::failure;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
#include "ck_tile/ops/elementwise/unary_element_wise_operation.hpp"
|
||||
#include "conv_configs.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
|
||||
template <typename InDataType, typename WeiDataType, typename AccDataType, typename OutDataType>
|
||||
auto calculate_rtol_atol(const ck_tile::index_t GemmK,
|
||||
const ck_tile::index_t kbatch,
|
||||
@@ -144,3 +147,4 @@ struct InvokerResult
|
||||
float ave_time;
|
||||
ck_tile::index_t split_k;
|
||||
};
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user