Fix memorySizeBytes calculation in HBM3

This commit is contained in:
Zimmerma
2025-09-26 08:56:37 +02:00
parent a20be8f809
commit da6efb3538

View File

@@ -80,7 +80,7 @@ MemSpecHBM3::MemSpecHBM3(const DRAMUtils::MemSpec::MemSpecHBM3& 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;