37 lines
753 B
C++
37 lines
753 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/aub/aub_helper.h"
|
|
|
|
#include "runtime/aub_mem_dump/aub_mem_dump.h"
|
|
#include "runtime/helpers/basic_math.h"
|
|
#include "runtime/os_interface/debug_settings_manager.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
uint64_t AubHelper::getTotalMemBankSize() {
|
|
return 2 * GB;
|
|
}
|
|
|
|
int AubHelper::getMemTrace(uint64_t pdEntryBits) {
|
|
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
|
}
|
|
|
|
uint64_t AubHelper::getPTEntryBits(uint64_t pdEntryBits) {
|
|
return pdEntryBits;
|
|
}
|
|
|
|
uint32_t AubHelper::getMemType(uint32_t addressSpace) {
|
|
return 0;
|
|
}
|
|
|
|
uint64_t AubHelper::getMemBankSize(const HardwareInfo *pHwInfo) {
|
|
return getTotalMemBankSize();
|
|
}
|
|
|
|
} // namespace OCLRT
|