Skip to content

Commit f0cb1cc

Browse files
Remove isForceToStatelessRequired from compilerHwInfoConfig helper
Signed-off-by: Kamil Kopryk <[email protected]> Related-To: NEO-6075
1 parent 4426d9d commit f0cb1cc

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

shared/offline_compiler/source/offline_compiler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,8 @@ void OfflineCompiler::setStatelessToStatefullBufferOffsetFlag() {
713713

714714
void OfflineCompiler::appendExtraInternalOptions(const HardwareInfo &hwInfo, std::string &internalOptions) {
715715
const auto &compilerHwInfoConfig = *CompilerHwInfoConfig::get(hwInfo.platform.eProductFamily);
716-
if (compilerHwInfoConfig.isForceToStatelessRequired() && !forceStatelessToStatefulOptimization) {
716+
auto sharedSystemMemCapabilitiesSupported = (hwInfo.capabilityTable.sharedSystemMemCapabilities > 0);
717+
if (sharedSystemMemCapabilitiesSupported && !forceStatelessToStatefulOptimization) {
717718
CompilerOptions::concatenateAppend(internalOptions, CompilerOptions::greaterThan4gbBuffersRequired);
718719
}
719720
if (compilerHwInfoConfig.isForceEmuInt32DivRemSPRequired()) {

shared/source/helpers/compiler_hw_info_config.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class CompilerHwInfoConfig {
2424
}
2525

2626
virtual bool isMidThreadPreemptionSupported(const HardwareInfo &hwInfo) const = 0;
27-
virtual bool isForceToStatelessRequired() const = 0;
2827
virtual bool isForceEmuInt32DivRemSPRequired() const = 0;
2928
virtual bool isStatelessToStatefulBufferOffsetSupported() const = 0;
3029
};
@@ -38,7 +37,6 @@ class CompilerHwInfoConfigHw : public CompilerHwInfoConfig {
3837
}
3938

4039
bool isMidThreadPreemptionSupported(const HardwareInfo &hwInfo) const override;
41-
bool isForceToStatelessRequired() const override;
4240
bool isForceEmuInt32DivRemSPRequired() const override;
4341
bool isStatelessToStatefulBufferOffsetSupported() const override;
4442

shared/source/helpers/compiler_hw_info_config_base.inl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
#include "shared/source/helpers/compiler_hw_info_config.h"
1111

1212
namespace NEO {
13-
template <PRODUCT_FAMILY gfxProduct>
14-
bool CompilerHwInfoConfigHw<gfxProduct>::isForceToStatelessRequired() const {
15-
return false;
16-
}
1713

1814
template <PRODUCT_FAMILY gfxProduct>
1915
bool CompilerHwInfoConfigHw<gfxProduct>::isForceEmuInt32DivRemSPRequired() const {

0 commit comments

Comments
 (0)