mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Apply common file to release 12.74. Move isMatrixMultiplyAccumulateSupported specialization outside of the common file. Move common specializations from releases: 12.70, 12.71, 12.74 to release_helper_common_xe_lpg.inl file. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
67 lines
2.2 KiB
C++
67 lines
2.2 KiB
C++
/*
|
|
* Copyright (C) 2023-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/release_helper/release_helper.h"
|
|
#include "shared/source/release_helper/release_helper_base.inl"
|
|
#include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h"
|
|
|
|
#include "neo_aot_platforms.h"
|
|
#include "release_definitions.h"
|
|
|
|
#include <algorithm>
|
|
|
|
namespace NEO {
|
|
constexpr auto release = ReleaseType::release1270;
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isPipeControlPriorToNonPipelinedStateCommandsWARequired() const {
|
|
return hardwareIpVersion.value == AOT::MTL_U_A0;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isProgramAllStateComputeCommandFieldsWARequired() const {
|
|
return hardwareIpVersion.value == AOT::MTL_U_A0;
|
|
}
|
|
|
|
template <>
|
|
inline bool ReleaseHelperHw<release>::isAuxSurfaceModeOverrideRequired() const {
|
|
return true;
|
|
}
|
|
|
|
template <>
|
|
inline bool ReleaseHelperHw<release>::isDotProductAccumulateSystolicSupported() const {
|
|
return false;
|
|
}
|
|
|
|
template <>
|
|
const SizeToPreferredSlmValueArray &ReleaseHelperHw<release>::getSizeToPreferredSlmValue(bool isHeapless) const {
|
|
using PREFERRED_SLM_ALLOCATION_SIZE = typename XeHpgCoreFamily::INTERFACE_DESCRIPTOR_DATA::PREFERRED_SLM_ALLOCATION_SIZE;
|
|
static const SizeToPreferredSlmValueArray sizeToPreferredSlmValue = {{
|
|
{0, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_0KB},
|
|
{16 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_16KB},
|
|
{32 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_32KB},
|
|
{64 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_64KB},
|
|
{std::numeric_limits<uint32_t>::max(), PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_96KB},
|
|
}};
|
|
return sizeToPreferredSlmValue;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isDummyBlitWaRequired() const {
|
|
return true;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isMatrixMultiplyAccumulateSupported() const {
|
|
return false;
|
|
}
|
|
|
|
} // namespace NEO
|
|
#include "shared/source/release_helper/release_helper_common_xe_lpg.inl"
|
|
|
|
template class NEO::ReleaseHelperHw<NEO::release>;
|