mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 18:37:46 +08:00
- pass hwInfo and localMemoryEnabled to AubCenter ctor - initialize AubCenter in Platform:intialize() when Device is created - only when CSR is not CsrHw - move aub_center files to runtime/aub directory Change-Id: Iceb4bf1cb2bb55b42d438502cca667a449f11411
22 lines
680 B
C++
22 lines
680 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/aub/aub_center.h"
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "runtime/os_interface/debug_settings_manager.h"
|
|
|
|
namespace OCLRT {
|
|
AubCenter::AubCenter(const HardwareInfo *pHwInfo, bool localMemoryEnabled) {
|
|
if (DebugManager.flags.UseAubStream.get()) {
|
|
std::string filename("aub.aub");
|
|
aubManager.reset(AubDump::AubManager::create(pHwInfo->pPlatform->eRenderCoreFamily, 1, 1, localMemoryEnabled, filename));
|
|
}
|
|
addressMapper = std::make_unique<AddressMapper>();
|
|
streamProvider = std::make_unique<AubFileStreamProvider>();
|
|
}
|
|
} // namespace OCLRT
|