Files
compute-runtime/opencl/test/unit_test/program/program_tests.h
Kacper Nowak d2a2656caa fix(zebin): Enforce fallback to CTNI on TGL/ICL for nGEN dummy kernel
For TGL and ICL platforms - if on clCreateProgramWithSource()
call we detect a nGen dummy kernel usage - enforce fallback to the
patchtokens format (only for this kernel).
- corrected naming
- minor ULTs refactor (less dependencies).
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2023-01-13 14:36:56 +01:00

42 lines
1.0 KiB
C++

/*
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
#include "opencl/test/unit_test/fixtures/context_fixture.h"
#include "opencl/test/unit_test/fixtures/platform_fixture.h"
#include "opencl/test/unit_test/mocks/mock_program.h"
#include "gtest/gtest.h"
#include <vector>
class ProgramTests : public NEO::ClDeviceFixture,
public ::testing::Test,
public NEO::ContextFixture {
using NEO::ContextFixture::setUp;
public:
void SetUp() override;
void TearDown() override;
};
class MinimumProgramFixture : public NEO::ContextFixture,
public NEO::PlatformFixture,
public ::testing::Test {
using NEO::ContextFixture::setUp;
using NEO::PlatformFixture::setUp;
protected:
void SetUp() override;
void TearDown() override;
cl_int retVal = CL_SUCCESS;
uint32_t rootDeviceIndex = std::numeric_limits<uint32_t>::max();
};