small changes from postopt (#11854)

This commit is contained in:
George Hotz
2025-08-26 11:56:16 -07:00
committed by GitHub
parent a3aeef45cc
commit b268755d51
8 changed files with 50 additions and 26 deletions

View File

@@ -7,6 +7,7 @@ class NullRenderer(CStyleLanguage):
device = "NULL"
has_local = False
float4 = "float4"
barrier = "// BARRIER"
code_for_op = {**CStyleLanguage.code_for_op, Ops.THREEFRY: lambda a,b,dtype: f"threefry({a},{b})", Ops.MAX: lambda a,b,dtype: f"max({a},{b})"}
class NullProgram: