Add GlobalWrite disable (for perf debug uses)
@@ -252,6 +252,7 @@ class KernelWriterAssembly(KernelWriter):
self.do["Sync"] = True
self.do["MAC"] = True
self.do["PostLoop"] = True
+ self.do["GlobalWrite"] = True
self.do["KeepDirectToLdsAlloc"] = False # If true, keep regs used for LDS alloc even if not used
# Various debug flags and modes
@@ -4911,6 +4912,7 @@ class KernelWriterAssembly(KernelWriter):
kStr += inst("v_add_f64", vgpr(sumIdx*2,2), vgpr(data+0,2), vgpr(sumIdx*2,2), \
"sum*alpha + C*beta")
+ if self.do["GlobalWrite"]:
nonTemporalStr = ""
if kernel["NonTemporalC"]%2==1:
nonTemporalStr += " glc"
