@@ -51,6 +51,7 @@ __docformat__ = 'reStructuredText'
5151import argparse
5252import sys
5353import logging
54+ from platform import release
5455from GPUmodules import __version__ , __status__ , __credits__
5556from GPUmodules import GPUmodule as Gpu
5657from GPUmodules .env import GUT_CONST
@@ -60,8 +61,7 @@ LOGGER = logging.getLogger('gpu-utils')
6061
6162
6263def main () -> None :
63- """
64- Main flow for gpu-ls.
64+ """ Main flow for gpu-ls.
6565 """
6666 parser = argparse .ArgumentParser ()
6767 parser .add_argument ('--about' , help = 'README' ,
@@ -104,14 +104,18 @@ def main() -> None:
104104
105105 # About me
106106 if args .about :
107+ GUT_CONST .check_env ()
107108 current_pversion = sys .version_info
109+ current_kversion_str = release ()
108110 print (__doc__ )
109111 print ('Author: ' , __author__ )
110112 print ('Copyright: ' , __copyright__ )
111113 print ('Credits: ' , * ['\n {}' .format (item ) for item in __credits__ ])
112114 print ('License: ' , __license__ )
113115 print ('Rickslab-gpu-utils Version: ' , __version__ )
114116 print ('Install Type: ' , GUT_CONST .install_type )
117+ print ('Distro: {}' .format (GUT_CONST .distro ))
118+ print ('Kernel Version: {}' .format (current_kversion_str ))
115119 print ('Python Version: {}.{}.{}' .format (current_pversion [0 ],
116120 current_pversion [1 ],
117121 current_pversion [2 ]))
@@ -172,9 +176,6 @@ def main() -> None:
172176 else :
173177 gpu_list .print ()
174178
175- if GUT_CONST .debug :
176- for key , value in GUT_CONST .PATTERNS .patterns .items ():
177- print ('{}\n {}' .format (key , value ))
178179 sys .exit (0 )
179180
180181
0 commit comments