Files
compute-runtime/runtime/aub/aub_helper.cpp
Kowalczuk, Jakub cb3e4eeb84 Add getDevicesCount() to AubCenter
Change-Id: I1bb91fe3f1b3155790c7d7b20c7db687c7fcfa82
2018-12-13 16:48:31 +01:00

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