2022-06-15 11:49:38 +00:00
|
|
|
/*
|
2024-02-07 16:36:04 +00:00
|
|
|
* Copyright (C) 2022-2024 Intel Corporation
|
2022-06-15 11:49:38 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2022-11-07 13:04:52 +00:00
|
|
|
#include "shared/source/ail/ail_configuration.h"
|
|
|
|
|
|
2022-06-15 11:49:38 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2023-11-30 13:33:54 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline void AILConfigurationHw<product>::modifyKernelIfRequired(std::string &kernel) {
|
2022-06-15 11:49:38 +00:00
|
|
|
}
|
|
|
|
|
|
2023-11-30 13:33:54 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline void AILConfigurationHw<product>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
2022-06-15 11:49:38 +00:00
|
|
|
}
|
|
|
|
|
|
2023-11-30 13:33:54 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::isContextSyncFlagRequired() {
|
2024-09-30 09:34:50 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-18 13:20:03 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::isRunAloneContextRequired() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-30 09:34:50 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::is256BPrefetchDisableRequired() {
|
2023-10-14 11:32:40 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-19 10:52:40 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::drainHostptrs() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-18 10:14:25 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::isBufferPoolEnabled() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-30 13:33:54 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::useLegacyValidationLogic() {
|
2023-10-18 23:43:21 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-07 16:36:04 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::forceRcs() {
|
|
|
|
|
return shouldForceRcs;
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-08 10:31:57 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::handleDivergentBarriers() {
|
|
|
|
|
return shouldHandleDivergentBarriers;
|
|
|
|
|
}
|
|
|
|
|
template <PRODUCT_FAMILY product>
|
2024-09-18 12:38:06 +00:00
|
|
|
inline bool AILConfigurationHw<product>::disableBindlessAddressing() {
|
|
|
|
|
return shouldDisableBindlessAddressing;
|
|
|
|
|
}
|
|
|
|
|
template <PRODUCT_FAMILY product>
|
2024-08-08 10:31:57 +00:00
|
|
|
inline void AILConfigurationHw<product>::setHandleDivergentBarriers(bool val) {
|
|
|
|
|
shouldHandleDivergentBarriers = val;
|
|
|
|
|
}
|
2024-09-18 12:38:06 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline void AILConfigurationHw<product>::setDisableBindlessAddressing(bool val) {
|
|
|
|
|
shouldDisableBindlessAddressing = val;
|
|
|
|
|
}
|
2024-08-08 10:31:57 +00:00
|
|
|
|
2024-10-24 15:15:52 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::limitAmountOfDeviceMemoryForRecycling() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-20 09:25:25 +00:00
|
|
|
template <PRODUCT_FAMILY product>
|
|
|
|
|
inline bool AILConfigurationHw<product>::isFallbackToPatchtokensRequired() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-15 11:49:38 +00:00
|
|
|
} // namespace NEO
|