mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
26 lines
681 B
C++
26 lines
681 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace aub_stream {
|
|
|
|
struct HardwareContext;
|
|
|
|
class AubManager {
|
|
public:
|
|
virtual ~AubManager() = default;
|
|
virtual HardwareContext *createHardwareContext(uint32_t device, uint32_t engine) = 0;
|
|
virtual void writeMemory(uint64_t gfxAddress, const void *memory, size_t size, uint32_t memoryBanks, int hint, size_t pageSize = 65536) = 0;
|
|
|
|
static AubManager *create(uint32_t gfxFamily, uint32_t devicesCount, uint64_t memoryBankSize, bool localMemorySupported, const std::string &aubFileName);
|
|
};
|
|
|
|
} // namespace aub_stream
|