2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-03-26 18:59:46 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2019-03-26 18:59:46 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "unit_tests/aub_tests/command_queue/command_enqueue_fixture.h"
|
|
|
|
#include "unit_tests/fixtures/hello_world_kernel_fixture.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
static const char programFile[] = "simple_block_kernel";
|
|
|
|
static const char kernelName[] = "kernel_reflection";
|
|
|
|
|
|
|
|
class AUBParentKernelFixture : public CommandEnqueueAUBFixture,
|
|
|
|
public HelloWorldKernelFixture,
|
|
|
|
public testing::Test {
|
|
|
|
public:
|
|
|
|
using HelloWorldKernelFixture::SetUp;
|
|
|
|
|
|
|
|
void SetUp() {
|
|
|
|
CommandEnqueueAUBFixture::SetUp();
|
|
|
|
ASSERT_NE(nullptr, pDevice);
|
|
|
|
|
|
|
|
std::string options("");
|
|
|
|
if (pDevice->getSupportedClVersion() >= 20) {
|
|
|
|
options = "-cl-std=CL2.0";
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
HelloWorldKernelFixture::SetUp(pDevice, programFile, kernelName, options.c_str());
|
|
|
|
}
|
|
|
|
void TearDown() {
|
|
|
|
if (pDevice->getSupportedClVersion() >= 20) {
|
|
|
|
HelloWorldKernelFixture::TearDown();
|
|
|
|
}
|
|
|
|
CommandEnqueueAUBFixture::TearDown();
|
|
|
|
}
|
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|