mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
- remove xe hpg encode preferred slm size - add dg2/mtl/arl release helper preferred slm array - drop dg2 preproduction stepping values for preferred slm size - remove obsolete product helper method Related-To: NEO-12639 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
63 lines
1.9 KiB
C++
63 lines
1.9 KiB
C++
/*
|
|
* Copyright (C) 2023-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/release_helper/release_helper.h"
|
|
#include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isProgramAllStateComputeCommandFieldsWARequired() const {
|
|
return true;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isSplitMatrixMultiplyAccumulateSupported() const {
|
|
return true;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isBFloat16ConversionSupported() const {
|
|
return true;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
|
|
return true;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isRcsExposureDisabled() const {
|
|
return true;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isBindlessAddressingDisabled() const {
|
|
return false;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isGlobalBindlessAllocatorEnabled() const {
|
|
return true;
|
|
}
|
|
|
|
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_0K},
|
|
{16 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_16K},
|
|
{32 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_32K},
|
|
{64 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_64K},
|
|
{96 * MemoryConstants::kiloByte, PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_96K},
|
|
{std::numeric_limits<uint32_t>::max(), PREFERRED_SLM_ALLOCATION_SIZE::PREFERRED_SLM_ALLOCATION_SIZE_128K},
|
|
}};
|
|
return sizeToPreferredSlmValue;
|
|
}
|
|
|
|
} // namespace NEO
|