mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 15:38:29 -05:00
fix gpu compilation of const GEP (#1788)
This commit is contained in:
@@ -199,7 +199,7 @@ def uops_to_cstyle(lang:CStyleLanguage, function_name:str, uops:List[UOp]) -> st
|
||||
bufs.append(args)
|
||||
r[u] = args[0]
|
||||
elif uop == UOps.GEP:
|
||||
r[u] = f"{r[vin[0]]}.{'xyzw'[args]}"
|
||||
r[u] = f"({r[vin[0]]}).{'xyzw'[args]}"
|
||||
else:
|
||||
raise RuntimeError(f"failed to render {uop}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user