File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -528,10 +528,10 @@ def compile_config(
528528 self .maybe_log_repro (log .warning , self .fake_args , config = config )
529529 raise
530530 if allow_print :
531- log .info ("Output code: \n %s" , triton_code )
532531 log .info ("Output code written to: %s" , module .__file__ )
533532 log .debug ("Debug string: \n %s" , LazyString (lambda : self ._debug_str ()))
534533 if self .settings .print_output_code :
534+ log .info ("Output code: \n %s" , triton_code )
535535 print (triton_code , file = sys .stderr )
536536 rv = getattr (module , self .kernel .name )
537537 self ._compile_cache [config ] = rv
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ def add(x, y):
8989
9090 x = torch .randn (4 , device = DEVICE )
9191
92+ add .settings .print_output_code = True
9293 with self .assertLogs ("helion.runtime.kernel" , level = "DEBUG" ) as cm :
9394 add (x , x )
9495 self .assertTrue (
You can’t perform that action at this time.
0 commit comments