mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Add AIL product enablers
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0a106c150e
commit
be598fc692
@@ -7,8 +7,7 @@
|
||||
set(NEO_CORE_AIL
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ail_configuration.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ail_configuration.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ail_configuration.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${BRANCH_DIR_SUFFIX}/ail_configuration.cpp
|
||||
)
|
||||
|
||||
set_property(GLOBAL PROPERTY NEO_CORE_AIL ${NEO_CORE_AIL})
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
#pragma once
|
||||
|
||||
namespace NEO {
|
||||
|
||||
enum class AILEnumeration : uint32_t {
|
||||
DISABLE_COMPRESSION,
|
||||
AIL_MAX_OPTIONS_COUNT
|
||||
};
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration.h"
|
||||
|
||||
#include <map>
|
||||
#include <string_view>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
extern std::map<std::string_view, std::vector<AILEnumeration>> applicationMapHW;
|
||||
|
||||
template <PRODUCT_FAMILY Product>
|
||||
void AILConfigurationHw<Product>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
}
|
||||
} // namespace NEO
|
||||
19
shared/source/ail/gen12lp/adls/ail_configuration_adls.cpp
Normal file
19
shared/source/ail/gen12lp/adls/ail_configuration_adls.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration.h"
|
||||
|
||||
#include <map>
|
||||
namespace NEO {
|
||||
static EnableAIL<IGFX_ALDERLAKE_S> enableAILADLS;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapADLS = {};
|
||||
|
||||
template <>
|
||||
inline void AILConfigurationHw<IGFX_ALDERLAKE_S>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
}
|
||||
} // namespace NEO
|
||||
19
shared/source/ail/gen12lp/dg1/ail_configuration_dg1.cpp
Normal file
19
shared/source/ail/gen12lp/dg1/ail_configuration_dg1.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration.h"
|
||||
|
||||
#include <map>
|
||||
namespace NEO {
|
||||
static EnableAIL<IGFX_DG1> enableAILDG1;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapDG1 = {};
|
||||
|
||||
template <>
|
||||
inline void AILConfigurationHw<IGFX_DG1>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
}
|
||||
} // namespace NEO
|
||||
19
shared/source/ail/gen12lp/rkl/ail_configuration_rkl.cpp
Normal file
19
shared/source/ail/gen12lp/rkl/ail_configuration_rkl.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration.h"
|
||||
|
||||
#include <map>
|
||||
namespace NEO {
|
||||
static EnableAIL<IGFX_ROCKETLAKE> enableAILRKL;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapRKL = {};
|
||||
|
||||
template <>
|
||||
inline void AILConfigurationHw<IGFX_ROCKETLAKE>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
}
|
||||
} // namespace NEO
|
||||
19
shared/source/ail/gen12lp/tgllp/ail_configuration_tgllp.cpp
Normal file
19
shared/source/ail/gen12lp/tgllp/ail_configuration_tgllp.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration.h"
|
||||
|
||||
#include <map>
|
||||
namespace NEO {
|
||||
static EnableAIL<IGFX_TIGERLAKE_LP> enableAILTGLLP;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapTGLLP = {};
|
||||
|
||||
template <>
|
||||
inline void AILConfigurationHw<IGFX_TIGERLAKE_LP>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
}
|
||||
} // namespace NEO
|
||||
@@ -19,6 +19,20 @@ bool AILConfiguration::initProcessExecutableName() {
|
||||
std::wcstombs(processFilename, processFilenameW, MAX_PATH);
|
||||
}
|
||||
|
||||
std::string_view pathView(processFilename);
|
||||
|
||||
auto lastPosition = pathView.find_last_of("\\");
|
||||
|
||||
pathView.remove_prefix(lastPosition + 1u);
|
||||
|
||||
lastPosition = pathView.find(".exe");
|
||||
|
||||
if (lastPosition != std::string_view::npos) {
|
||||
pathView.remove_suffix(pathView.size() - lastPosition);
|
||||
}
|
||||
|
||||
processName = pathView;
|
||||
|
||||
return status;
|
||||
}
|
||||
} // namespace NEO
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration.h"
|
||||
|
||||
#include <map>
|
||||
namespace NEO {
|
||||
static EnableAIL<IGFX_XE_HP_SDV> enableAILXEHPSDV;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapXEHPSDV = {};
|
||||
|
||||
template <>
|
||||
inline void AILConfigurationHw<IGFX_XE_HP_SDV>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
}
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user