File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,8 @@ void OfflineCompiler::setStatelessToStatefullBufferOffsetFlag() {
713713
714714void 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 ()) {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1010#include " shared/source/helpers/compiler_hw_info_config.h"
1111
1212namespace NEO {
13- template <PRODUCT_FAMILY gfxProduct>
14- bool CompilerHwInfoConfigHw<gfxProduct>::isForceToStatelessRequired() const {
15- return false ;
16- }
1713
1814template <PRODUCT_FAMILY gfxProduct>
1915bool CompilerHwInfoConfigHw<gfxProduct>::isForceEmuInt32DivRemSPRequired() const {
You can’t perform that action at this time.
0 commit comments