mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Fix returned local memory size
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
75012f4465
commit
0346a5679f
@@ -22,7 +22,7 @@ extern aub_stream::AubManager *createAubManager(uint32_t productFamily, uint32_t
|
||||
AubCenter::AubCenter(const HardwareInfo *pHwInfo, const GmmHelper &gmmHelper, bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType) {
|
||||
if (DebugManager.flags.UseAubStream.get()) {
|
||||
auto devicesCount = HwHelper::getSubDevicesCount(pHwInfo);
|
||||
auto memoryBankSize = AubHelper::getMemBankSize(pHwInfo);
|
||||
auto memoryBankSize = AubHelper::getPerTileLocalMemorySize(pHwInfo);
|
||||
CommandStreamReceiverType type = csrType;
|
||||
if (DebugManager.flags.SetCommandStreamReceiver.get() >= CommandStreamReceiverType::CSR_HW) {
|
||||
type = static_cast<CommandStreamReceiverType>(DebugManager.flags.SetCommandStreamReceiver.get());
|
||||
|
||||
@@ -42,7 +42,7 @@ uint32_t AubHelper::getMemType(uint32_t addressSpace) {
|
||||
return mem_types::MEM_TYPE_SYSTEM;
|
||||
}
|
||||
|
||||
uint64_t AubHelper::getMemBankSize(const HardwareInfo *pHwInfo) {
|
||||
uint64_t AubHelper::getPerTileLocalMemorySize(const HardwareInfo *pHwInfo) {
|
||||
if (DebugManager.flags.HBMSizePerTileInGigabytes.get() > 0) {
|
||||
return DebugManager.flags.HBMSizePerTileInGigabytes.get() * MemoryConstants::gigaByte;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class AubHelper : public NonCopyableOrMovableClass {
|
||||
static int getMemTrace(uint64_t pdEntryBits);
|
||||
static uint64_t getPTEntryBits(uint64_t pdEntryBits);
|
||||
static uint32_t getMemType(uint32_t addressSpace);
|
||||
static uint64_t getMemBankSize(const HardwareInfo *pHwInfo);
|
||||
static uint64_t getPerTileLocalMemorySize(const HardwareInfo *pHwInfo);
|
||||
static MMIOList getAdditionalMmioList();
|
||||
static void setTbxConfiguration();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user