mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
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:
5
test/external/verify_kernel.py
vendored
5
test/external/verify_kernel.py
vendored
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user