2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2021-05-16 20:51:16 +02:00
|
|
|
* Copyright (C) 2018-2021 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
|
2020-10-28 16:08:37 +01:00
|
|
|
#include "shared/source/helpers/common_types.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2021-03-19 13:43:50 +01:00
|
|
|
#include "aub_mem_dump.h"
|
|
|
|
|
|
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);
|
2021-05-18 16:42:05 +00: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
|