2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2023-01-24 15:33:52 +00:00
|
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2021-12-07 11:22:25 +00:00
|
|
|
#include "shared/source/aub_mem_dump/aub_mem_dump.h"
|
2023-01-24 15:33:52 +00:00
|
|
|
#include "shared/source/helpers/device_bitfield.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include <string>
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
struct HardwareInfo;
|
|
|
|
|
class CommandStreamReceiver;
|
2018-08-08 13:49:09 +02:00
|
|
|
class ExecutionEnvironment;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
struct AUBCommandStreamReceiver {
|
2020-10-28 16:08:37 +01:00
|
|
|
static CommandStreamReceiver *create(const std::string &filename,
|
|
|
|
|
bool standalone,
|
|
|
|
|
ExecutionEnvironment &executionEnvironment,
|
|
|
|
|
uint32_t rootDeviceIndex,
|
2020-10-29 15:33:35 +01:00
|
|
|
const DeviceBitfield deviceBitfield);
|
2023-10-26 15:04:39 +02:00
|
|
|
static std::string createFullFilePath(const HardwareInfo &hwInfo, const std::string &filename, uint32_t rootDeviceIndex);
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
using AubFileStream = AubMemDump::AubFileStream;
|
|
|
|
|
};
|
|
|
|
|
|
2020-10-28 16:08:37 +01:00
|
|
|
typedef CommandStreamReceiver *(*AubCommandStreamReceiverCreateFunc)(const std::string &fileName,
|
|
|
|
|
bool standalone,
|
|
|
|
|
ExecutionEnvironment &executionEnvironment,
|
|
|
|
|
uint32_t rootDeviceIndex,
|
2020-10-29 15:33:35 +01:00
|
|
|
const DeviceBitfield deviceBitfield);
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|