Files
compute-runtime/opencl/test/unit_test/mocks/mock_debug_program.h
Fabian Zwolinski 6fca8ee195 refactor: Remove SourceLevelDebugger
Removed:
- SourceLevelDebugger (with tests)
- DebuggerLibrary
- DebuggerLibraryRestore
- debuggerSupported field from hwInfo.capabilityTable
- HasSourceLevelDebuggerSupport matcher
- ExperimentalEnableSourceLevelDebugger debug var
- EnableMockSourceLevelDebugger debug var
- DebuggerOptDisable debug var
- lib_names.h.in file
- third_party/source_level_debugger/igfx_debug_interchange_types.h

Related-To: NEO-7213
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2023-08-10 11:14:02 +02:00

49 lines
1.4 KiB
C++

/*
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/program/program.h"
#include <memory>
namespace NEO {
class ClDevice;
class ClDeviceVector;
class Device;
struct KernelInfo;
struct MockCompilerInterfaceCaptureBuildOptions;
} // namespace NEO
class MockDebugProgram : public NEO::Program {
public:
using Base = NEO::Program;
using Base::Base;
using Base::buildInfos;
using Base::irBinary;
using Base::irBinarySize;
MockDebugProgram(const NEO::ClDeviceVector &deviceVector);
void debugNotify(const NEO::ClDeviceVector &deviceVector, std::unordered_map<uint32_t, BuildPhase> &phasesReached) override;
void createDebugZebin(uint32_t rootDeviceIndex) override;
void processDebugData(uint32_t rootDeviceIndex) override;
cl_int processGenBinary(const NEO::ClDevice &clDevice) override;
void addKernelInfo(NEO::KernelInfo *inInfo, uint32_t rootDeviceIndex);
NEO::KernelInfo *kernelInfo = nullptr;
std::unique_ptr<char[]> kernelSsh;
NEO::MockCompilerInterfaceCaptureBuildOptions *compilerInterface;
bool wasDebuggerNotified = false;
bool wasCreateDebugZebinCalled = false;
bool wasProcessDebugDataCalled = false;
protected:
void prepareKernelInfo();
void prepareSSHForDebugSurface();
void prepareMockCompilerInterface(NEO::Device &device);
};