mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-11 17:00:18 +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
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -2119,9 +2119,11 @@ pipeline {
|
||||
}
|
||||
success {
|
||||
script {
|
||||
// Report the parent stage build ck and run tests status
|
||||
setGithubStatus("${env.STAGE_NAME}", 'success', "Stage ${env.STAGE_NAME} passed")
|
||||
echo "Reporting success status for build ck and run tests"
|
||||
node(rocmnode("nogpu")) {
|
||||
// Report the parent stage build ck and run tests status
|
||||
setGithubStatus("${env.STAGE_NAME}", 'success', "Stage ${env.STAGE_NAME} passed")
|
||||
echo "Reporting success status for build ck and run tests"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2145,9 +2147,11 @@ pipeline {
|
||||
post {
|
||||
success {
|
||||
script {
|
||||
// Report the skipped parent's stage status
|
||||
setGithubStatus("${env.STAGE_NAME}", 'success', "Stage ${env.STAGE_NAME} passed")
|
||||
echo "Process Performance Test Results stage skipped."
|
||||
node(rocmnode("nogpu")) {
|
||||
// Report the skipped parent's stage status
|
||||
setGithubStatus("${env.STAGE_NAME}", 'success', "Stage ${env.STAGE_NAME} passed")
|
||||
echo "Process Performance Test Results stage skipped."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,7 @@ set(GTEST_CXX_FLAGS
|
||||
-Wno-lifetime-safety-intra-tu-suggestions
|
||||
-Wno-lifetime-safety-cross-tu-suggestions
|
||||
-Wno-character-conversion
|
||||
-Wno-lifetime-safety-invalidation
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
@@ -78,7 +79,8 @@ if(WIN32)
|
||||
-Wno-suggest-destructor-override
|
||||
-Wno-suggest-override
|
||||
-Wno-nonportable-system-include-path
|
||||
-Wno-language-extension-token)
|
||||
-Wno-language-extension-token
|
||||
-Wno-lifetime-safety-invalidation)
|
||||
endif()
|
||||
|
||||
target_compile_options(gtest PRIVATE ${GTEST_CXX_FLAGS})
|
||||
|
||||
@@ -132,10 +132,7 @@ bool run_grouped_conv_fwd(bool do_verification,
|
||||
|
||||
ref_invoker.Run(ref_argument);
|
||||
|
||||
out_host.ForEach([&](auto&, auto idx)
|
||||
{
|
||||
out_element_op(out_host(idx), c_host(idx));
|
||||
});
|
||||
out_host.ForEach([&](auto&, auto idx) { out_element_op(out_host(idx), c_host(idx)); });
|
||||
|
||||
out_device_buf.FromDevice(out_device.mData.data());
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ck/host_utility/hip_check_error.hpp"
|
||||
#include "ck/library/utility/check_err.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace profiler {
|
||||
|
||||
@@ -517,3 +519,4 @@ float gpu_reduce_max(Iterator device_buffer, std::size_t size, hipStream_t strea
|
||||
|
||||
} // namespace profiler
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
#include "ck/utility/scheduler_enum.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
template <typename DeviceOp,
|
||||
@@ -974,3 +976,4 @@ struct DeviceBatchedContractionMultipleD_Wmma_CShuffle_V3
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ck/host_utility/device_prop.hpp"
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
template <typename GridwiseGemm,
|
||||
@@ -1097,3 +1099,4 @@ struct DeviceBatchedContractionMultipleD_Xdl_CShuffle
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
#include "ck/host_utility/io.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -770,3 +772,4 @@ struct DeviceBatchedGemmMultiD_Xdl : public DeviceBatchedGemmMultiD<ALayout,
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ck/host_utility/device_prop.hpp"
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
template <typename GridwiseGemm,
|
||||
@@ -919,3 +921,4 @@ struct DeviceGemmMultipleDLayernorm_Wmma_CShuffleV3
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#include "ck/host_utility/device_prop.hpp"
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
template <typename GridwiseGemm,
|
||||
@@ -712,3 +714,4 @@ struct DeviceGemmMultipleDMultipleR_Xdl_CShuffle
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ck/host_utility/flush_cache.hpp"
|
||||
#include "ck/tensor_operation/gpu/device/impl/device_gemm_wmma_cshuffle_v3_common.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -408,3 +410,4 @@ struct DeviceGemmMultipleD_Wmma_CShuffleV3
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "ck/tensor_operation/gpu/device/matrix_padder.hpp"
|
||||
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_multiple_d_xdl_cshuffle.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
template <typename GridwiseGemm,
|
||||
@@ -941,3 +943,4 @@ struct DeviceGemmMultipleD_Xdl_CShuffle : public DeviceGemmMultipleD<ALayout,
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
#include "ck_tile/builder/reflect/instance_traits_device_grouped_conv_fwd_multiple_abd_wmma_cshuffle_v3.hpp"
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -2381,3 +2383,4 @@ struct DeviceGroupedConvFwdMultipleABD_Wmma_CShuffle_V3
|
||||
#ifdef CK_EXPERIMENTAL_BUILDER
|
||||
#include "ck_tile/builder/reflect/reflect_device_grouped_conv_fwd_multiple_abd_wmma_cshuffle_v3.inc"
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
#include "ck_tile/builder/reflect/instance_traits_device_grouped_conv_fwd_multiple_abd_xdl_cshuffle.hpp"
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -2233,3 +2235,4 @@ struct DeviceGroupedConvFwdMultipleABD_Xdl_CShuffle
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "ck_tile/builder/reflect/instance_traits_device_grouped_conv_fwd_multiple_abd_xdl_cshuffle_v3.hpp"
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -2208,3 +2210,4 @@ struct DeviceGroupedConvFwdMultipleABD_Xdl_CShuffle_V3
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "ck/host_utility/io.hpp"
|
||||
#include "ck/library/utility/numeric.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -1141,3 +1143,4 @@ struct DeviceGroupedConvFwdMultipleDMultipleR_Xdl_CShuffle
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#include "ck_tile/builder/reflect/instance_traits_device_grouped_conv_fwd_multiple_d_wmma_cshuffle.hpp"
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -1031,3 +1033,4 @@ struct DeviceGroupedConvFwdMultipleD_Wmma_CShuffle
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -593,3 +595,4 @@ struct DeviceMultipleReduceMultiBlock : public DeviceMultipleReduce<Rank,
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -420,3 +422,4 @@ struct DeviceMultipleReduceThreadWise : public DeviceMultipleReduce<Rank,
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
namespace tensor_operation {
|
||||
namespace device {
|
||||
@@ -280,3 +282,4 @@ struct DevicePermuteImpl : DevicePermute<NumDim, InDataType, OutDataType, Elemen
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "ck/host_utility/device_prop.hpp"
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
template <typename GridwiseGemm,
|
||||
@@ -1203,3 +1205,4 @@ struct DeviceSplitKContractionMultipleD_Xdl_CShuffle
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "ck/tensor_operation/gpu/element/element_wise_operation.hpp"
|
||||
#include "ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_common.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
// Currently we do not have a elegant way to put single lds buffer & double lds buffer pipe in same
|
||||
@@ -1597,3 +1599,4 @@ struct GridwiseGemm_xdl_cshuffle_v3
|
||||
};
|
||||
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "ck/utility/amd_inline_asm.hpp"
|
||||
#include "ck/utility/type.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
// Define the common macro for MI300 models
|
||||
#if defined(__gfx942__) || defined(__gfx950__)
|
||||
@@ -2483,3 +2485,4 @@ inline __host__ __device__ void array_convert(Array<Y, NumElems>& y, const Array
|
||||
}
|
||||
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "ck_tile/core/numeric/int8.hpp"
|
||||
#include "ck_tile/core/numeric/mxfp_convert.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck_tile {
|
||||
|
||||
#if CK_TILE_USE_CUSTOM_DATA_TYPE
|
||||
@@ -147,3 +149,4 @@ CK_TILE_SCALED_TYPE_CONVERT(fp16_t, fp16, pk_fp4_t, pk_fp4)
|
||||
#endif
|
||||
|
||||
} // namespace ck_tile
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include <thread>
|
||||
#include <string>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck_tile {
|
||||
|
||||
enum class naive_attention_layout_enum
|
||||
@@ -824,3 +826,4 @@ CK_TILE_HOST float naive_attention_fwd(naive_attention_fwd_traits t,
|
||||
#undef CK_TILE_DISPATCH_NAIVE_ATTEN_FWD_INTERNAL_
|
||||
|
||||
} // namespace ck_tile
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "ck/tensor_operation/gpu/device/device_base.hpp"
|
||||
#include "ck/host_utility/kernel_launch.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions"
|
||||
namespace ck {
|
||||
|
||||
template <typename ALayout,
|
||||
@@ -275,3 +277,4 @@ struct ReferenceGemm : public device::BaseOperator
|
||||
} // namespace device
|
||||
} // namespace tensor_operation
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "ck/ck.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
using Row = ck::tensor_layout::gemm::RowMajor;
|
||||
using Col = ck::tensor_layout::gemm::ColumnMajor;
|
||||
|
||||
@@ -81,3 +83,4 @@ assign_default_strides(Col, std::vector<ck::index_t>& strides, std::vector<ck::i
|
||||
stride *= dims[s];
|
||||
}
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#include "ck/library/utility/convolution_parameter.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
namespace ck {
|
||||
namespace test {
|
||||
|
||||
@@ -244,3 +246,4 @@ inline bool load_and_populate_test_cases(const std::vector<std::string>& csv_pat
|
||||
|
||||
} // namespace test
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
using namespace ck::tensor_layout::convolution; // Import tensor layout names (GNHWK, GKYXC, etc.)
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
// Load CSV data for 2D tests
|
||||
static std::vector<ck::utils::conv::ConvParam> Get2DTestCases()
|
||||
{
|
||||
@@ -315,3 +317,4 @@ TEST_P(TestGroupedConvndBwdData3dNDHWGKBFloat16SplitK2, ConvTest)
|
||||
INSTANTIATE_TEST_SUITE_P(Dataset,
|
||||
TestGroupedConvndBwdData3dNDHWGKBFloat16SplitK2,
|
||||
::testing::ValuesIn(Get3DTestCases()));
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "profiler/profile_grouped_conv_bwd_weight_impl.hpp" // The actual GPU profiler that does convolution work
|
||||
#include "../common/csv_test_loader.hpp" // Shared CSV test case loader
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
using namespace ck::tensor_layout::convolution;
|
||||
|
||||
// Load CSV data for 2D tests
|
||||
@@ -256,3 +258,4 @@ TEST_P(TestGroupedConvndBwdWeight3dNDHWGKBFloat16SplitK2, ConvTest)
|
||||
INSTANTIATE_TEST_SUITE_P(Dataset,
|
||||
TestGroupedConvndBwdWeight3dNDHWGKBFloat16SplitK2,
|
||||
::testing::ValuesIn(Get3DTestCases()));
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "profiler/profile_grouped_conv_fwd_impl.hpp" // The actual GPU profiler that does convolution work
|
||||
#include "../common/csv_test_loader.hpp" // Shared CSV test case loader
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
using namespace ck::tensor_layout::convolution; // Import tensor layout names (NHWGC, GKYXC, etc.)
|
||||
|
||||
// Load CSV data for 2D tests
|
||||
@@ -167,3 +169,4 @@ TEST_P(TestGroupedConvndFwd3dBFloat16, ConvTest)
|
||||
INSTANTIATE_TEST_SUITE_P(Dataset,
|
||||
TestGroupedConvndFwd3dBFloat16,
|
||||
::testing::ValuesIn(Get3DTestCases()));
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
static ck::index_t param_mask = 0xffffff;
|
||||
|
||||
using FP32 = float;
|
||||
@@ -302,3 +304,4 @@ int main(int argc, char** argv)
|
||||
}
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
using FP32 = float;
|
||||
using FP16 = ck::half_t;
|
||||
using BF16 = ck::bhalf_t;
|
||||
@@ -237,3 +239,4 @@ int main(int argc, char** argv)
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "profiler/profile_grouped_gemm_impl.hpp"
|
||||
#include "profiler/profile_grouped_gemm_fixed_nk_impl.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
extern ck::index_t param_mask;
|
||||
extern ck::index_t instance_index;
|
||||
|
||||
@@ -325,3 +327,4 @@ class TestGroupedGemm : public testing::Test
|
||||
|
||||
} // namespace test
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "example/ck_tile/17_grouped_gemm/grouped_gemm_multi_d.hpp"
|
||||
#include "profiler/profile_grouped_gemm_tile_loop_generic_impl.hpp"
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wlifetime-safety-invalidation"
|
||||
extern ck::index_t param_mask;
|
||||
extern ck::index_t instance_index;
|
||||
|
||||
@@ -171,3 +173,4 @@ class TestGroupedGemmTileLoop : public testing::Test
|
||||
|
||||
} // namespace test
|
||||
} // namespace ck
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user