mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Revert "Ocloc: New AOT approach implementation"
This reverts commit a44f1b43aa.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
51726dc32c
commit
cca1dbecbc
@@ -34,7 +34,6 @@ set(NEO_CORE_HELPERS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_hw_info_config.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_hw_info_config.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_hw_info_config_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_aot_config_bdw_and_later.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_hw_info_config_bdw_and_later.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_options_parser.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_options_parser.h
|
||||
@@ -106,7 +105,6 @@ set(NEO_CORE_HELPERS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/preamble_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/preamble_bdw_and_later.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/preprocessor.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/product_config_helper.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/product_config_helper.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ptr_math.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ray_tracing_helper.h
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/helpers/compiler_hw_info_config.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
|
||||
namespace NEO {
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
void CompilerHwInfoConfigHw<gfxProduct>::setProductConfigForHwInfo(HardwareInfo &hwInfo, AheadOfTimeConfig config) const {
|
||||
hwInfo.platform.usRevId = config.ProductConfigID.Revision;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -8,7 +8,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/helpers/product_config_helper.h"
|
||||
|
||||
#include "igfxfmid.h"
|
||||
|
||||
@@ -28,7 +27,6 @@ class CompilerHwInfoConfig {
|
||||
virtual bool isForceEmuInt32DivRemSPRequired() const = 0;
|
||||
virtual bool isStatelessToStatefulBufferOffsetSupported() const = 0;
|
||||
virtual bool isForceToStatelessRequired() const = 0;
|
||||
virtual void setProductConfigForHwInfo(HardwareInfo &hwInfo, AheadOfTimeConfig config) const = 0;
|
||||
};
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
@@ -43,7 +41,6 @@ class CompilerHwInfoConfigHw : public CompilerHwInfoConfig {
|
||||
bool isForceEmuInt32DivRemSPRequired() const override;
|
||||
bool isStatelessToStatefulBufferOffsetSupported() const override;
|
||||
bool isForceToStatelessRequired() const override;
|
||||
void setProductConfigForHwInfo(HardwareInfo &hwInfo, AheadOfTimeConfig config) const override;
|
||||
|
||||
protected:
|
||||
CompilerHwInfoConfigHw() = default;
|
||||
|
||||
@@ -89,7 +89,6 @@ namespace CommonConstants {
|
||||
constexpr uint64_t unsupportedPatIndex = std::numeric_limits<uint64_t>::max();
|
||||
constexpr uint32_t unspecifiedDeviceIndex = std::numeric_limits<uint32_t>::max();
|
||||
constexpr uint32_t invalidStepping = std::numeric_limits<uint32_t>::max();
|
||||
constexpr uint32_t invalidRevisionID = std::numeric_limits<uint16_t>::max();
|
||||
constexpr uint32_t maximalSimdSize = 32;
|
||||
constexpr uint32_t maximalSizeOfAtomicType = 8;
|
||||
constexpr uint32_t engineGroupCount = static_cast<uint32_t>(NEO::EngineGroupType::MaxEngineGroups);
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/helpers/product_config_helper.h"
|
||||
|
||||
AOT::RELEASE ProductConfigHelper::returnReleaseForAcronym(const std::string &device) {
|
||||
auto it = AOT::releaseAcronyms.find(device);
|
||||
if (it == AOT::releaseAcronyms.end())
|
||||
return AOT::UNKNOWN_RELEASE;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
AOT::FAMILY ProductConfigHelper::returnFamilyForAcronym(const std::string &device) {
|
||||
auto it = AOT::familyAcronyms.find(device);
|
||||
if (it == AOT::familyAcronyms.end())
|
||||
return AOT::UNKNOWN_FAMILY;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
AOT::PRODUCT_CONFIG ProductConfigHelper::returnProductConfigForAcronym(const std::string &device) {
|
||||
auto it = AOT::productConfigAcronyms.find(device);
|
||||
if (it == AOT::productConfigAcronyms.end())
|
||||
return AOT::UNKNOWN_ISA;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
NEO::ConstStringRef ProductConfigHelper::getAcronymForAFamily(AOT::FAMILY family) {
|
||||
for (const auto &[acronym, value] : AOT::familyAcronyms) {
|
||||
if (value == family) {
|
||||
return NEO::ConstStringRef(acronym);
|
||||
}
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string ProductConfigHelper::parseMajorMinorRevisionValue(AheadOfTimeConfig config) {
|
||||
std::stringstream stringConfig;
|
||||
stringConfig << config.ProductConfigID.Major << "." << config.ProductConfigID.Minor << "." << config.ProductConfigID.Revision;
|
||||
return stringConfig.str();
|
||||
}
|
||||
|
||||
std::string ProductConfigHelper::parseMajorMinorValue(AheadOfTimeConfig config) {
|
||||
std::stringstream stringConfig;
|
||||
stringConfig << config.ProductConfigID.Major << "." << config.ProductConfigID.Minor;
|
||||
return stringConfig.str();
|
||||
}
|
||||
@@ -6,38 +6,36 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/utilities/const_stringref.h"
|
||||
|
||||
#include "platforms.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
struct AheadOfTimeConfig {
|
||||
union {
|
||||
uint32_t ProductConfig;
|
||||
struct
|
||||
{
|
||||
uint32_t Revision : 6;
|
||||
uint32_t Reserved : 8;
|
||||
uint32_t Minor : 8;
|
||||
uint32_t Major : 10;
|
||||
} ProductConfigID;
|
||||
};
|
||||
};
|
||||
|
||||
namespace NEO {
|
||||
struct ProductConfigHelper {
|
||||
static std::string parseMajorMinorValue(AheadOfTimeConfig config);
|
||||
static std::string parseMajorMinorRevisionValue(AheadOfTimeConfig config);
|
||||
inline static std::string parseMajorMinorRevisionValue(AOT::PRODUCT_CONFIG config) {
|
||||
std::stringstream stringConfig;
|
||||
AheadOfTimeConfig aotConfig = {0};
|
||||
aotConfig.ProductConfig = config;
|
||||
return parseMajorMinorRevisionValue(aotConfig);
|
||||
static uint32_t getMajor(PRODUCT_CONFIG config) {
|
||||
return (static_cast<uint32_t>(config) & 0xff0000) >> 16;
|
||||
}
|
||||
|
||||
static AOT::PRODUCT_CONFIG returnProductConfigForAcronym(const std::string &device);
|
||||
static AOT::RELEASE returnReleaseForAcronym(const std::string &device);
|
||||
static AOT::FAMILY returnFamilyForAcronym(const std::string &device);
|
||||
static NEO::ConstStringRef getAcronymForAFamily(AOT::FAMILY family);
|
||||
static uint32_t getMinor(PRODUCT_CONFIG config) {
|
||||
return (static_cast<uint32_t>(config) & 0x00ff00) >> 8;
|
||||
}
|
||||
|
||||
static uint32_t getRevision(PRODUCT_CONFIG config) {
|
||||
return static_cast<uint32_t>(config) & 0x0000ff;
|
||||
}
|
||||
|
||||
static std::string parseMajorMinorRevisionValue(PRODUCT_CONFIG config) {
|
||||
std::stringstream stringConfig;
|
||||
stringConfig << getMajor(config) << "." << getMinor(config) << "." << getRevision(config);
|
||||
return stringConfig.str();
|
||||
}
|
||||
|
||||
static std::string parseMajorMinorValue(PRODUCT_CONFIG config) {
|
||||
std::stringstream stringConfig;
|
||||
stringConfig << getMajor(config) << "." << getMinor(config);
|
||||
return stringConfig.str();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user