Add AIL functionality

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2021-07-21 08:47:43 +00:00
committed by Compute-Runtime-Automation
parent ab73b61b77
commit 2afb785bba
29 changed files with 396 additions and 18 deletions

View File

@@ -0,0 +1,13 @@
#
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
set(NEO_CORE_AIL_WINDOWS
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/ail_configuration_windows.cpp
)
set_property(GLOBAL PROPERTY NEO_CORE_AIL_WINDOWS ${NEO_CORE_AIL_WINDOWS})
add_subdirectories()

View File

@@ -0,0 +1,24 @@
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/ail/ail_configuration.h"
#include "shared/source/os_interface/windows/sys_calls.h"
namespace NEO {
bool AILConfiguration::initProcessExecutableName() {
const DWORD length = MAX_PATH;
WCHAR processFilenameW[length];
char processFilename[length] = "";
auto status = SysCalls::getModuleFileName(nullptr, processFilenameW, MAX_PATH);
if (status != 0) {
std::wcstombs(processFilename, processFilenameW, MAX_PATH);
}
return status;
}
} // namespace NEO