[CK_TILE]fix elementwise example in gfx11/12 (#2676)

* fix elementwise examples

* improve the robust

* fix ck_tile's elementwise test

* update elementwise test
This commit is contained in:
joyeamd
2025-08-14 06:21:46 +08:00
committed by GitHub
parent a6f4029276
commit bcc38deff7
6 changed files with 12 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ class TestCkTileElementwise : public ::testing::Test
using BlockTile_ = std::tuple_element_t<5, Tuple>;
using WarpTile_ = std::tuple_element_t<6, Tuple>;
using TestElementWiseShape =
ck_tile::ElementWiseShape<BlockWarps_, BlockTile_, WarpTile_, ComputeDataType>;
ck_tile::ElementWiseShape<BlockWarps_, BlockTile_, WarpTile_, XDataType>;
static constexpr int NumInputs = elementwise_op_traits<ElementwiseOpType>::num_inputs;
void RunTest(ck_tile::index_t total_m_elements)
@@ -195,8 +195,7 @@ TYPED_TEST(TestCkTileElementwise, RunElementwise_1024) { this->RunTest(1024); }
TYPED_TEST(TestCkTileElementwise, RunElementwise_513)
{
EXPECT_THROW((this->RunTest(513)),
std::runtime_error); // Test with an input size that's not a multiple of kVectorM
this->RunTest(513); // Test with an input size that's not a multiple of kVectorM
}
TYPED_TEST(TestCkTileElementwise, RunElementwise_516)