Fix memorySizeBytes calculation in HBM2

This commit is contained in:
Zimmerma
2025-09-25 15:05:17 +02:00
parent a0cb479561
commit a20be8f809

View File

@@ -97,7 +97,7 @@ MemSpecHBM2::MemSpecHBM2(const DRAMUtils::MemSpec::MemSpecHBM2& memSpec) :
uint64_t deviceSizeBits =
static_cast<uint64_t>(banksPerRank) * rowsPerBank * columnsPerRow * bitWidth;
uint64_t deviceSizeBytes = deviceSizeBits / 8;
memorySizeBytes = deviceSizeBytes * ranksPerChannel * numberOfChannels;
memorySizeBytes = deviceSizeBytes * ranksPerChannel * stacksPerChannel * numberOfChannels;
std::cout << headline << std::endl;
std::cout << "Memory Configuration:" << std::endl << std::endl;