// Copyright (c) Advanced Micro Devices, Inc., or its affiliates. // SPDX-License-Identifier: MIT #include #include #include using ::rocm_ck::index_t; using ::rocm_ck::long_index_t; namespace { TEST(IndexTypes, IndexTypeIs32Bit) { EXPECT_EQ(sizeof(index_t), 4); } TEST(IndexTypes, LongIndexTypeIs64Bit) { EXPECT_EQ(sizeof(long_index_t), 8); } TEST(IndexTypes, IndexTypeIsSigned) { EXPECT_TRUE(index_t(-1) < 0); } TEST(IndexTypes, LongIndexTypeIsSigned) { EXPECT_TRUE(long_index_t(-1) < 0); } TEST(IndexTypes, MatchesCkTileIndexType) { EXPECT_TRUE((std::is_same_v)); } TEST(IndexTypes, MatchesCkTileLongIndexType) { EXPECT_TRUE((std::is_same_v)); } } // namespace