mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Related-To: HSD-18033144631 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
30 lines
714 B
C++
30 lines
714 B
C++
/*
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/memory_manager/allocation_type.h"
|
|
#include "shared/source/release_helper/release_helper.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isMatrixMultiplyAccumulateSupported() const {
|
|
return false;
|
|
}
|
|
|
|
template <>
|
|
std::optional<GfxMemoryAllocationMethod> ReleaseHelperHw<release>::getPreferredAllocationMethod(AllocationType allocationType) const {
|
|
switch (allocationType) {
|
|
case AllocationType::TAG_BUFFER:
|
|
case AllocationType::TIMESTAMP_PACKET_TAG_BUFFER:
|
|
return {};
|
|
default:
|
|
return GfxMemoryAllocationMethod::AllocateByKmd;
|
|
}
|
|
}
|
|
|
|
} // namespace NEO
|