mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
38 lines
847 B
C++
38 lines
847 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/aub/aub_helper.h"
|
|
#include "runtime/aub_mem_dump/aub_mem_dump.h"
|
|
#include "runtime/os_interface/debug_settings_manager.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
int AubHelper::getMemTrace(uint64_t pdEntryBits) {
|
|
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
|
}
|
|
|
|
uint64_t AubHelper::getPTEntryBits(uint64_t pdEntryBits) {
|
|
return pdEntryBits;
|
|
}
|
|
|
|
void AubHelper::checkPTEAddress(uint64_t address) {
|
|
}
|
|
|
|
uint32_t AubHelper::getMemType(uint32_t addressSpace) {
|
|
return 0;
|
|
}
|
|
|
|
uint32_t AubHelper::getMemBankSizeInGigabytes() {
|
|
return 2;
|
|
}
|
|
|
|
uint32_t AubHelper::getDevicesCount(const HardwareInfo *pHwInfo) {
|
|
return DebugManager.flags.CreateMultipleDevices.get() > 0 ? DebugManager.flags.CreateMultipleDevices.get() : 1u;
|
|
}
|
|
|
|
} // namespace OCLRT
|