mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
This commit introduces AUB-specific control class to execution environment. Change-Id: I525c9c93a4f10f769dbedb7d097674c35693f0b1
38 lines
981 B
C++
38 lines
981 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/command_stream/aub_stream_provider.h"
|
|
#include "runtime/memory_manager/physical_address_allocator.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
class AubCenter {
|
|
public:
|
|
AubCenter() {
|
|
streamProvider = std::make_unique<AubFileStreamProvider>();
|
|
}
|
|
virtual ~AubCenter() = default;
|
|
|
|
void initPhysicalAddressAllocator(PhysicalAddressAllocator *pPhysicalAddressAllocator) {
|
|
physicalAddressAllocator = std::unique_ptr<PhysicalAddressAllocator>(pPhysicalAddressAllocator);
|
|
}
|
|
|
|
PhysicalAddressAllocator *getPhysicalAddressAllocator() const {
|
|
return physicalAddressAllocator.get();
|
|
}
|
|
|
|
AubStreamProvider *getStreamProvider() const {
|
|
return streamProvider.get();
|
|
}
|
|
|
|
protected:
|
|
std::unique_ptr<PhysicalAddressAllocator> physicalAddressAllocator;
|
|
std::unique_ptr<AubStreamProvider> streamProvider;
|
|
};
|
|
} // namespace OCLRT
|