2023-04-13 22:16:49 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2023 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2023-09-11 17:05:49 +08:00
|
|
|
#include "shared/source/memory_manager/allocation_type.h"
|
2023-04-13 22:16:49 +08:00
|
|
|
#include "shared/source/release_helper/release_helper.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isMatrixMultiplyAccumulateSupported() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2023-09-11 17:05:49 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-13 17:55:17 +08:00
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isCachingOnCpuAvailable() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2023-09-20 21:08:46 +08:00
|
|
|
template <>
|
|
|
|
bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2023-04-13 22:16:49 +08:00
|
|
|
} // namespace NEO
|