Files
compute-runtime/opencl/test/unit_test/program/program_with_zebin.h
Kacper Nowak 741ee49c9a Refactor source level debugger notification in OCL. [1/n]
Refactor source level debugger notification in OCL path - in build()
cl_program method. It fixes confusing debug data creation (mixed
legacy/zebin path) and thus incorrect kernel notification about debug
data.

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
Related-To: NEO-6644
2022-02-10 17:47:05 +01:00

29 lines
845 B
C++

/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "opencl/test/unit_test/mocks/mock_program.h"
#include "opencl/test/unit_test/program/program_tests.h"
using namespace NEO;
class MockBuffer;
class ProgramWithZebinFixture : public ProgramTests {
public:
std::unique_ptr<MockProgram> program;
std::unique_ptr<KernelInfo> kernelInfo;
std::unique_ptr<MockGraphicsAllocation> mockAlloc;
std::unique_ptr<MockBuffer> globalSurface;
std::unique_ptr<MockBuffer> constantSurface;
const char strings[12] = "Hello olleH";
const char kernelName[8] = "kernel1";
void SetUp() override;
void TearDown() override;
void addEmptyZebin(MockProgram *program);
void populateProgramWithSegments(MockProgram *program);
~ProgramWithZebinFixture() = default;
};