mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
40 lines
909 B
C++
40 lines
909 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::tagBuffer:
|
|
case AllocationType::timestampPacketTagBuffer:
|
|
return {};
|
|
default:
|
|
return GfxMemoryAllocationMethod::allocateByKmd;
|
|
}
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isCachingOnCpuAvailable() const {
|
|
return false;
|
|
}
|
|
|
|
template <>
|
|
bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
|
|
return true;
|
|
}
|
|
|
|
} // namespace NEO
|