diff --git a/include/ck/tensor_description/tensor_space_filling_curve.hpp b/include/ck/tensor_description/tensor_space_filling_curve.hpp index c399c874b8..6ca81b14f5 100644 --- a/include/ck/tensor_description/tensor_space_filling_curve.hpp +++ b/include/ck/tensor_description/tensor_space_filling_curve.hpp @@ -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 diff --git a/include/ck/utility/array.hpp b/include/ck/utility/array.hpp index 73eb18fe16..9dfc266d8b 100644 --- a/include/ck/utility/array.hpp +++ b/include/ck/utility/array.hpp @@ -9,6 +9,9 @@ #include #include +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions" + namespace ck { template @@ -78,4 +81,7 @@ __host__ __device__ constexpr auto make_array() } } // namespace ck + +#pragma clang diagnostic pop + #endif diff --git a/include/ck/utility/sequence.hpp b/include/ck/utility/sequence.hpp index eb4373447c..503426949a 100644 --- a/include/ck/utility/sequence.hpp +++ b/include/ck/utility/sequence.hpp @@ -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 @@ -1016,6 +1019,8 @@ using uniform_sequence_gen_t = typename uniform_sequence_gen::type; } // namespace ck +#pragma clang diagnostic pop + #if !defined(__HIPCC_RTC__) || !defined(CK_CODE_GEN_RTC) template std::ostream& operator<<(std::ostream& os, const ck::Sequence) diff --git a/include/ck/utility/statically_indexed_array.hpp b/include/ck/utility/statically_indexed_array.hpp index e953735385..8dc5b8dd09 100644 --- a/include/ck/utility/statically_indexed_array.hpp +++ b/include/ck/utility/statically_indexed_array.hpp @@ -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 diff --git a/include/ck_tile/core/container/array.hpp b/include/ck_tile/core/container/array.hpp index 8b273b691b..b487467a71 100644 --- a/include/ck_tile/core/container/array.hpp +++ b/include/ck_tile/core/container/array.hpp @@ -12,6 +12,9 @@ #include "ck_tile/core/utility/type_traits.hpp" #include "ck_tile/core/utility/functional.hpp" +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions" + namespace ck_tile { // use aggregate initialization for this type @@ -305,3 +308,5 @@ CK_TILE_HOST_DEVICE constexpr auto to_array(const X& x) } } // namespace ck_tile + +#pragma clang diagnostic pop diff --git a/include/ck_tile/core/container/static_array.hpp b/include/ck_tile/core/container/static_array.hpp index 0d60d5bc91..baefcdc408 100644 --- a/include/ck_tile/core/container/static_array.hpp +++ b/include/ck_tile/core/container/static_array.hpp @@ -6,6 +6,9 @@ #include "ck_tile/core/config.hpp" #include "ck_tile/core/numeric/integer.hpp" +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions" + namespace ck_tile { /** @@ -30,3 +33,5 @@ struct static_array CK_TILE_HOST_DEVICE static constexpr index_t size() { return N; } }; } // namespace ck_tile + +#pragma clang diagnostic pop diff --git a/include/ck_tile/core/container/thread_buffer.hpp b/include/ck_tile/core/container/thread_buffer.hpp index 8785a301fb..2224056015 100644 --- a/include/ck_tile/core/container/thread_buffer.hpp +++ b/include/ck_tile/core/container/thread_buffer.hpp @@ -7,6 +7,9 @@ #include "ck_tile/core/container/array.hpp" #include "ck_tile/core/container/tuple.hpp" +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions" + namespace ck_tile { #if CK_TILE_THREAD_BUFFER_DEFAULT == CK_TILE_THREAD_BUFFER_USE_TUPLE @@ -174,3 +177,5 @@ struct vector_traits, std::enable_if_t>> #endif } // namespace ck_tile + +#pragma clang diagnostic pop diff --git a/include/ck_tile/host/kernel_launch.hpp b/include/ck_tile/host/kernel_launch.hpp index 6b7bf1b653..4565c0e147 100644 --- a/include/ck_tile/host/kernel_launch.hpp +++ b/include/ck_tile/host/kernel_launch.hpp @@ -15,6 +15,9 @@ #include #include +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions" + namespace ck_tile { template @@ -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