mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
fix: extend buffer pool AIL to MTL
Related-To: NEO-11021 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
70e52ce4d8
commit
4bcba0f036
@@ -86,7 +86,7 @@ class AILConfiguration {
|
||||
|
||||
extern const std::set<std::string_view> applicationsContextSyncFlag;
|
||||
extern const std::set<std::string_view> applicationsForceRcsDg2;
|
||||
extern const std::set<std::string_view> applicationsBufferPoolDisabledDG2;
|
||||
extern const std::set<std::string_view> applicationsBufferPoolDisabled;
|
||||
|
||||
template <PRODUCT_FAMILY product>
|
||||
class AILConfigurationHw : public AILConfiguration {
|
||||
|
||||
@@ -30,7 +30,7 @@ const std::set<std::string_view> applicationsForceRcsDg2 = {};
|
||||
|
||||
const std::set<std::string_view> applicationsContextSyncFlag = {};
|
||||
|
||||
const std::set<std::string_view> applicationsBufferPoolDisabledDG2 = {};
|
||||
const std::set<std::string_view> applicationsBufferPoolDisabled = {};
|
||||
|
||||
AILConfigurationCreateFunctionType ailConfigurationFactory[IGFX_MAX_PRODUCT];
|
||||
|
||||
|
||||
@@ -66,8 +66,8 @@ inline void AILConfigurationHw<IGFX_DG2>::applyExt(RuntimeCapabilityTable &runti
|
||||
|
||||
template <>
|
||||
bool AILConfigurationHw<IGFX_DG2>::isBufferPoolEnabled() {
|
||||
auto iterator = applicationsBufferPoolDisabledDG2.find(processName);
|
||||
return iterator == applicationsBufferPoolDisabledDG2.end();
|
||||
auto iterator = applicationsBufferPoolDisabled.find(processName);
|
||||
return iterator == applicationsBufferPoolDisabled.end();
|
||||
}
|
||||
|
||||
template class AILConfigurationHw<IGFX_DG2>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -52,6 +52,12 @@ bool AILConfigurationHw<IGFX_METEORLAKE>::useLegacyValidationLogic() {
|
||||
return it != applicationsLegacyValidationPathMtl.end() ? true : false;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool AILConfigurationHw<IGFX_METEORLAKE>::isBufferPoolEnabled() {
|
||||
auto iterator = applicationsBufferPoolDisabled.find(processName);
|
||||
return iterator == applicationsBufferPoolDisabled.end();
|
||||
}
|
||||
|
||||
template class AILConfigurationHw<IGFX_METEORLAKE>;
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user