Add AIL product enablers

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2021-08-09 08:38:18 +00:00
committed by Compute-Runtime-Automation
parent 0a106c150e
commit be598fc692
16 changed files with 200 additions and 45 deletions

View File

@@ -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})

View File

@@ -12,7 +12,9 @@
#pragma once
namespace NEO {
enum class AILEnumeration : uint32_t {
DISABLE_COMPRESSION,
AIL_MAX_OPTIONS_COUNT
};

View File

@@ -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

View 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

View 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

View 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

View 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

View File

@@ -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

View 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_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