Fix memorySizeBytes calculation in HBM2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user