2018-05-08 19:51:31 +08:00
|
|
|
/*
|
2018-11-28 22:32:13 +08:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-05-08 19:51:31 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-05-08 19:51:31 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
2018-08-22 01:55:20 +08:00
|
|
|
class Kernel;
|
2018-10-03 01:10:29 +08:00
|
|
|
struct HardwareInfo;
|
2018-08-22 01:55:20 +08:00
|
|
|
|
2018-05-08 19:51:31 +08:00
|
|
|
template <typename GfxFamily>
|
2018-08-21 19:58:37 +08:00
|
|
|
struct UnitTestHelper {
|
2018-05-08 19:51:31 +08:00
|
|
|
static bool isL3ConfigProgrammable();
|
2018-08-22 01:55:20 +08:00
|
|
|
|
|
|
|
static bool evaluateDshUsage(size_t sizeBeforeEnqueue, size_t sizeAfterEnqueue, Kernel *kernel);
|
2018-10-03 01:10:29 +08:00
|
|
|
|
|
|
|
static bool isPageTableManagerSupported(const HardwareInfo &hwInfo);
|
2018-10-18 19:40:53 +08:00
|
|
|
|
2018-11-14 22:29:10 +08:00
|
|
|
static bool isTimestampPacketWriteSupported();
|
2018-11-28 22:32:13 +08:00
|
|
|
|
|
|
|
static bool isExpectMemoryNotEqualSupported();
|
2018-05-08 19:51:31 +08:00
|
|
|
};
|
|
|
|
} // namespace OCLRT
|