mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
-use clSetKernelExecInfo with param CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_INTEL to change default value of ThreadArbitrationPolicy Change-Id: I15d0de0840ed14687c16ae04890b662bc157de76 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "core/helpers/hw_cmds.h"
|
|
#include "runtime/helpers/properties_helper.h"
|
|
|
|
namespace NEO {
|
|
|
|
class Kernel;
|
|
struct HardwareInfo;
|
|
|
|
template <typename GfxFamily>
|
|
struct UnitTestHelper {
|
|
static bool isL3ConfigProgrammable();
|
|
|
|
static bool evaluateDshUsage(size_t sizeBeforeEnqueue, size_t sizeAfterEnqueue, Kernel *kernel);
|
|
|
|
static bool isPageTableManagerSupported(const HardwareInfo &hwInfo);
|
|
|
|
static bool isTimestampPacketWriteSupported();
|
|
|
|
static bool isExpectMemoryNotEqualSupported();
|
|
|
|
static uint32_t getDefaultSshUsage();
|
|
|
|
static uint32_t getAppropriateThreadArbitrationPolicy(uint32_t policy);
|
|
|
|
static bool evaluateGshAddressForScratchSpace(uint64_t usedScratchGpuAddress, uint64_t retrievedGshAddress);
|
|
|
|
static bool isPipeControlWArequired(const HardwareInfo &hwInfo);
|
|
|
|
static uint64_t getMemoryAddress(const typename GfxFamily::MI_ATOMIC &atomic);
|
|
|
|
static const bool tiledImagesSupported;
|
|
|
|
static const uint32_t smallestTestableSimdSize;
|
|
|
|
static const AuxTranslationMode requiredAuxTranslationMode;
|
|
};
|
|
} // namespace NEO
|