@@ -43,12 +43,10 @@ class VerbosityLevel(enum.IntEnum):
4343 """Verbosity level for ``@nsight.analyze.kernel``.
4444
4545 Selecting level N enables output at all levels with value <= N.
46- For example, ``INFO`` enables ERROR, WARNING, and INFO but not DEBUG.
46+ For example, ``INFO`` enables INFO but not DEBUG.
4747 """
4848
4949 SILENT = 0
50- ERROR = 1
51- WARNING = 2
5250 INFO = 3
5351 DEBUG = 4
5452
@@ -134,10 +132,10 @@ def format_time(seconds: float) -> str:
134132# Sincerely stolen (and adjusted) from attention-gym
135133def print_header (* lines : str ) -> None :
136134 width = max (80 , max (len (line ) for line in lines ) + 4 )
137- print (purple ("╔" + "═" * (width - 2 ) + "╗" ))
135+ print (purple ("[NSIGHT-PYTHON] ╔" + "═" * (width - 2 ) + "╗" ))
138136 for line in lines :
139- print (purple (f"║ { line .center (width - 4 )} ║" ))
140- print (purple ("╚" + "═" * (width - 2 ) + "╝" ))
137+ print (purple (f"[NSIGHT-PYTHON] ║ { line .center (width - 4 )} ║" ))
138+ print (purple ("[NSIGHT-PYTHON] ╚" + "═" * (width - 2 ) + "╝" ))
141139
142140
143141@dataclass
@@ -203,13 +201,13 @@ def print_progress_bar(
203201 sys .stdout .write ("\033 [1A" ) # Move cursor up 1 line
204202 sys .stdout .write ("\033 [2K\r " ) # Clear line
205203 sys .stdout .write (
206- f"Progress: [{ bar } ] { progress * 100 :.2f} % | Estimated time remaining: { formatted_time } \n "
204+ f"[NSIGHT-PYTHON] Progress: [{ bar } ] { progress * 100 :.2f} % | Estimated time remaining: { formatted_time } \n "
207205 )
208206 sys .stdout .flush ()
209207
210208 else :
211209 print (
212- f"Progress: [{ bar } ] { progress * 100 :.2f} % | Estimated time remaining: { formatted_time } "
210+ f"[NSIGHT-PYTHON] Progress: [{ bar } ] { progress * 100 :.2f} % | Estimated time remaining: { formatted_time } "
213211 )
214212
215213
0 commit comments