logging: change LOGKERN to LOGKERNS to match LOGOPS (#4193)

also add printing of ast and applied_opts during verify_kernel
to more easily debug errors if they come up
This commit is contained in:
Francis Lam
2024-04-16 13:08:32 -07:00
committed by GitHub
parent 7fb220a567
commit e9c1616b27
2 changed files with 7 additions and 4 deletions

View File

@@ -39,7 +39,10 @@ if __name__ == "__main__":
for i, kern_str in enumerate(kern_strs):
print(f"testing kernel {i}")
test_lin = kern_str_to_lin(kern_str)
for op in test_lin.ast: print_tree(op)
for op in test_lin.ast:
print_tree(op)
print(op)
print(test_lin.applied_opts)
print(test_lin.colored_shape())
(msg,rb,vv,gt) = compare_linearizer(test_lin, None, None, None, rtol=args.rtol, atol=args.atol)
if msg != "PASS":