Skip to content

Commit 84a1ccb

Browse files
Revert "Remove overridePlatformName method"
This reverts commit 2484c68. Signed-off-by: Compute-Runtime-Validation <[email protected]>
1 parent 7d7efb5 commit 84a1ccb

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

shared/offline_compiler/source/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ set(CLOC_LIB_SRCS_LIB
4040
${NEO_SHARED_DIRECTORY}/helpers/file_io.cpp
4141
${NEO_SHARED_DIRECTORY}/helpers/hw_info.cpp
4242
${NEO_SHARED_DIRECTORY}/helpers/hw_info.h
43+
${NEO_SHARED_DIRECTORY}/helpers${BRANCH_DIR_SUFFIX}hw_info_extended.cpp
4344
${NEO_SHARED_DIRECTORY}/kernel${BRANCH_DIR_SUFFIX}kernel_descriptor.cpp
4445
${NEO_SHARED_DIRECTORY}/kernel${BRANCH_DIR_SUFFIX}kernel_descriptor.h
4546
${NEO_SHARED_DIRECTORY}/os_interface/os_library.h

shared/offline_compiler/source/offline_compiler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ int OfflineCompiler::initHardwareInfo(std::string deviceName) {
339339
return retVal;
340340
}
341341

342+
overridePlatformName(deviceName);
342343
std::transform(deviceName.begin(), deviceName.end(), deviceName.begin(), ::tolower);
343344
const char hexPrefix = 2;
344345
std::string product("");

shared/source/helpers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ set(NEO_CORE_HELPERS
7373
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_tgllp_and_later.inl
7474
${CMAKE_CURRENT_SOURCE_DIR}/hw_info.cpp
7575
${CMAKE_CURRENT_SOURCE_DIR}/hw_info.h
76+
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}hw_info_extended.cpp
7677
${CMAKE_CURRENT_SOURCE_DIR}/hw_walk_order.h
7778
${CMAKE_CURRENT_SOURCE_DIR}/interlocked_max.h
7879
${CMAKE_CURRENT_SOURCE_DIR}/kernel_helpers.cpp

shared/source/helpers/hw_info.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ void (*hardwareInfoSetup[IGFX_MAX_PRODUCT])(HardwareInfo *, bool, uint64_t) = {
4747
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn) {
4848
std::transform(platform.begin(), platform.end(), platform.begin(), ::tolower);
4949

50+
overridePlatformName(platform);
51+
5052
bool ret = false;
5153
for (int j = 0; j < IGFX_MAX_PRODUCT; j++) {
5254
if (hardwarePrefix[j] == nullptr)

shared/source/helpers/hw_info.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ struct EnableGfxFamilyHw {
175175
bool getHwInfoForPlatformString(std::string &platform, const HardwareInfo *&hwInfoIn);
176176
void setHwInfoValuesFromConfig(const uint64_t hwInfoConfig, HardwareInfo &hwInfoIn);
177177
bool parseHwInfoConfigString(const std::string &hwInfoConfigStr, uint64_t &hwInfoConfig);
178+
void overridePlatformName(std::string &name);
178179
aub_stream::EngineType getChosenEngineType(const HardwareInfo &hwInfo);
179180
const std::string getFamilyNameWithType(const HardwareInfo &hwInfo);
180181

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (C) 2021-2022 Intel Corporation
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*
6+
*/
7+
8+
#include "shared/source/helpers/hw_info.h"
9+
10+
namespace NEO {
11+
12+
void overridePlatformName(std::string &name) {
13+
}
14+
15+
} // namespace NEO

0 commit comments

Comments
 (0)