mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:09:46 +08:00
This commit introduces AUB stream provider class to produce a single file stream in multi device scenarios with multiple AUB CSRs. Change-Id: Id70e0d680459d34f4291b9e56aa39d960f025ac6
31 lines
553 B
C++
31 lines
553 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/aub_mem_dump/aub_mem_dump.h"
|
|
#include <string>
|
|
|
|
namespace OCLRT {
|
|
|
|
class AubStreamProvider {
|
|
public:
|
|
virtual ~AubStreamProvider() = default;
|
|
|
|
virtual AubMemDump::AubFileStream *getStream() = 0;
|
|
};
|
|
|
|
class AubFileStreamProvider : public AubStreamProvider {
|
|
public:
|
|
AubMemDump::AubFileStream *getStream() override {
|
|
return &stream;
|
|
};
|
|
|
|
protected:
|
|
AubMemDump::AubFileStream stream;
|
|
};
|
|
} // namespace OCLRT
|