Skip to content

Commit

Permalink
PVC WAR dependence WA
Browse files Browse the repository at this point in the history
WAR localization and apply WA only to BB local
  • Loading branch information
bcheng0127 authored and igcbot committed Aug 30, 2024
1 parent ba1357c commit dbad589
Show file tree
Hide file tree
Showing 6 changed files with 423 additions and 46 deletions.
5 changes: 5 additions & 0 deletions IGC/Compiler/CISACodeGen/CISABuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5039,6 +5039,11 @@ namespace IGC
SaveOption(vISA_SWSBMakeLocalWAR, true);
}

if (IGC_IS_FLAG_ENABLED(PVCSendWARWA))
{
SaveOption(vISA_PVCSendWARWA, true);
}

if (IGC_IS_FLAG_ENABLED(SWSBReplaceARWithAW))
{
SaveOption(vISA_SWSBReplaceARWithAW, true);
Expand Down
1 change: 1 addition & 0 deletions IGC/common/igc_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ DECLARE_IGC_REGKEY(bool, EnableForceDebugSWSB, false, "Enable force deb
DECLARE_IGC_REGKEY(DWORD,EnableSWSBInstStall, 0, "Enable force stall to specific(start) instruction start for software scoreboard generation", true)
DECLARE_IGC_REGKEY(DWORD,EnableSWSBInstStallEnd, 0, "Enable force stall to end instruction for software scoreboard generation", true)
DECLARE_IGC_REGKEY(bool, SWSBMakeLocalWAR, false, "make WAR SBID dependence tracking BB local", true)
DECLARE_IGC_REGKEY(bool, PVCSendWARWA, false, "enable PVC send WAR WA", true)
DECLARE_IGC_REGKEY(DWORD,WARSWSBLocalStart, 0, "WAR localization start BB", true)
DECLARE_IGC_REGKEY(DWORD,WARSWSBLocalEnd, 0, "WAR localization end BB", true)
DECLARE_IGC_REGKEY(bool, SWSBReplaceARWithAW, false, "replace .src with .dst", true)
Expand Down
12 changes: 12 additions & 0 deletions visa/HWCaps.inc
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,18 @@ bool WARLocalization() const {
if (getOption(vISA_SWSBMakeLocalWAR) && (getPlatform() >= Xe2)) {
return true;
}

return false;
}

bool hasPVCSendWARWA() const {
return getPlatform() == Xe_PVC;
}

bool PVCSendWARWA() const {
if (getOption(vISA_PVCSendWARWA) && getPlatform() == Xe_PVC) {
return true;
}
return false;
}

Expand Down
Loading

0 comments on commit dbad589

Please sign in to comment.