41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "opencl/source/kernel/kernel.h"
|
|
#include "opencl/source/mem_obj/buffer.h"
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
|
#include "opencl/test/unit_test/fixtures/context_fixture.h"
|
|
#include "opencl/test/unit_test/mocks/mock_buffer.h"
|
|
#include "opencl/test/unit_test/mocks/mock_context.h"
|
|
#include "opencl/test/unit_test/mocks/mock_kernel.h"
|
|
#include "opencl/test/unit_test/mocks/mock_program.h"
|
|
#include "test.h"
|
|
|
|
#include "CL/cl.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
#include <memory>
|
|
|
|
using namespace NEO;
|
|
|
|
class KernelArgBufferFixture : public ContextFixture, public ClDeviceFixture {
|
|
|
|
using ContextFixture::SetUp;
|
|
|
|
public:
|
|
void SetUp();
|
|
void TearDown() override;
|
|
|
|
cl_int retVal = CL_SUCCESS;
|
|
MockProgram *pProgram = nullptr;
|
|
MockKernel *pKernel = nullptr;
|
|
std::unique_ptr<MockKernelInfo> pKernelInfo = nullptr;
|
|
char pSshLocal[64]{};
|
|
char pCrossThreadData[64]{};
|
|
};
|