Fix memorySizeBytes calculation in HBM3
This commit is contained in:
@@ -80,7 +80,7 @@ MemSpecHBM3::MemSpecHBM3(const DRAMUtils::MemSpec::MemSpecHBM3& memSpec) :
|
|||||||
uint64_t deviceSizeBits =
|
uint64_t deviceSizeBits =
|
||||||
static_cast<uint64_t>(banksPerRank) * rowsPerBank * columnsPerRow * bitWidth;
|
static_cast<uint64_t>(banksPerRank) * rowsPerBank * columnsPerRow * bitWidth;
|
||||||
uint64_t deviceSizeBytes = deviceSizeBits / 8;
|
uint64_t deviceSizeBytes = deviceSizeBits / 8;
|
||||||
memorySizeBytes = deviceSizeBytes * ranksPerChannel * numberOfChannels;
|
memorySizeBytes = deviceSizeBytes * ranksPerChannel * stacksPerChannel * numberOfChannels;
|
||||||
|
|
||||||
std::cout << headline << std::endl;
|
std::cout << headline << std::endl;
|
||||||
std::cout << "Memory Configuration:" << std::endl << std::endl;
|
std::cout << "Memory Configuration:" << std::endl << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user