need hand opt with IMAGE==2

This commit is contained in:
George Hotz
2023-02-20 10:18:19 -08:00
parent b925d05e22
commit 353e81fa8f

View File

@@ -231,7 +231,7 @@ class CLASTKernel(ASTKernel):
def codegen(self) -> Callable:
self.process()
self.upcast_in_mid_reduce = False
if not KOPT: self.hand_coded_optimizations()
if not KOPT or IMAGE == 2: self.hand_coded_optimizations()
# add a local buffer for multistage reduce
if len(self.group_for_reduce):