fix vectorloadsize bug

This commit is contained in:
AviralGoelAMD
2025-07-16 23:00:52 +00:00
parent 6d38fd3673
commit 793c2c5c3c
3 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ struct WeightPreshufflePipelineAGmemBGmemCRegV1
static constexpr bool kPadN = Problem::kPadN;
static constexpr bool kPadK = Problem::kPadK;
static constexpr index_t kLdsAlignmentInBytes = Problem::VectorLoadSize / sizeof(ADataType);
static constexpr index_t kLdsAlignmentInBytes = 16;
static constexpr index_t NumWaveGroups = Problem::NumWaveGroups;
static constexpr auto I0 = number<0>();

View File

@@ -81,7 +81,7 @@ struct WeightPreshufflePipelineAGmemBGmemCRegV2
static constexpr bool kPadN = Problem::kPadN;
static constexpr bool kPadK = Problem::kPadK;
static constexpr index_t kLdsAlignmentInBytes = Problem::VectorLoadSize / sizeof(ADataType);
static constexpr index_t kLdsAlignmentInBytes = 16;
static constexpr index_t NumWaveGroups = Problem::NumWaveGroups;
static constexpr auto I0 = number<0>();
@@ -107,7 +107,7 @@ struct WeightPreshufflePipelineAGmemBGmemCRegV2
static constexpr index_t MPerBlockPerIter = kMPerBlock / MIterPerWarp;
static constexpr index_t KPerBlockPerIter = kKPerBlock / KIterPerWarp;
static constexpr index_t K1 = 16 / sizeof(ADataType);
static constexpr index_t K1 = Problem::VectorLoadSize / sizeof(ADataType);
static constexpr index_t ACopyLoadNum = kMPerBlock * kKPerBlock / BlockSize / K1;
static constexpr auto TailNum = Problem::TailNum;

View File

@@ -107,7 +107,7 @@ struct WeightPreshufflePipelineAGmemBGmemCRegV3
static constexpr index_t MPerBlockPerIter = kMPerBlock / MIterPerWarp;
static constexpr index_t KPerBlockPerIter = kKPerBlock / KIterPerWarp;
static constexpr index_t K1 = VectorLoadSize / sizeof(ADataType);
static constexpr index_t K1 = Problem::VectorLoadSize / sizeof(ADataType);
static constexpr index_t ACopyLoadNum = kMPerBlock * kKPerBlock / BlockSize / K1;
static constexpr index_t ACopyLoadNumPerK = ACopyLoadNum / KIterPerWarp;
static constexpr index_t ACopyPerLoadM = kMPerBlock / ACopyLoadNum;