mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
add attribute to override cacheable attribute to gmm constructor enable this override for command buffers on mtl change command buffers back to allocation by kmd this keeps the quicker allocation which is needed to keep enqueue times low Related-To: NEO-8152 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
40 lines
913 B
C++
40 lines
913 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;
|
|
}
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isCachingOnCpuAvailable() const {
|
|
return false;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
|
|
return true;
|
|
}
|
|
|
|
} // namespace NEO
|