用户哪里显示Not Supported是怎么回事,网上一直找不到解决的方法
除此之外还有一些其他的参数,可以根据需要进行修改
parser_color.add_argument('--force-color', '--color', action='store_true',
help='Force to output with colors')
parser_color.add_argument('--no-color', action='store_true',
help='Suppress colored output')
parser.add_argument('-c', '--show-cmd', action='store_true',
help='Display cmd name of running process')
parser.add_argument('-u', '--show-user', action='store_true',
help='Display username of running process')
parser.add_argument('-p', '--show-pid', action='store_true',
help='Display PID of running process')
parser.add_argument('-F', '--show-fan-speed', '--show-fan',
action='store_true', help='Display GPU fan speed')
parser.add_argument('--json', action='store_true', default=False,
help='Print all the information in JSON format')
parser.add_argument('-v', '--version', action='version',
version=('gpustat %s' % __version__))
parser.add_argument(
'-P', '--show-power', nargs='?', const='draw,limit',
choices=['', 'draw', 'limit', 'draw,limit', 'limit,draw'],default='limit,draw',
help='Show GPU power usage or draw (and/or limit)'
)
parser.add_argument(
'-i', '--interval', '--watch', nargs='?', type=float, default=0.01,
help='Use watch mode if given; seconds to wait between updates'
)
parser.add_argument(
'--no-header', dest='show_header', action='store_false', default=True,
help='Suppress header message'
)
parser.add_argument(
'--gpuname-width', type=int, default=16,
help='The minimum column width of GPU names, defaults to 16'
)
parser.add_argument(
'--debug', action='store_true', default=False,
help='Allow to print additional informations for debugging.'
)
欢迎指正和提问,感谢