Files
compute-runtime/shared/source/release_helper/release_helper_common_xe_lpg.inl
Dominik Dabek b2a8fa6e57 performance: allocate cmd buffer by umd on mtl
Default allocation by kmd is slower, this improves enqueue times.

Related-To: NEO-8152

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2023-09-29 11:30:56 +02:00

42 lines
1013 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 {};
case AllocationType::COMMAND_BUFFER:
return GfxMemoryAllocationMethod::UseUmdSystemPtr;
default:
return GfxMemoryAllocationMethod::AllocateByKmd;
}
}
template <>
bool ReleaseHelperHw<release>::isCachingOnCpuAvailable() const {
return false;
}
template <>
bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
return true;
}
} // namespace NEO