Skip to content

Commit

Permalink
[rocm_smi.py]: fix input error type for --setclock
Browse files Browse the repository at this point in the history
signed-off-by: Elena Sakhnovitch
Change-Id: I9626978780f360c591fb8908f5b759f2289dff0b
  • Loading branch information
Elena Sakhnovitch authored and zhang2amd committed Mar 15, 2022
1 parent 741174f commit 5d7c30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python_smi_tools/rocm_smi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2915,7 +2915,7 @@ def save(deviceList, savefilepath):
groupAction.add_argument('--resetperfdeterminism', help='Disable performance determinism', action='store_true')
groupAction.add_argument('--setclock',
help='Set Clock Frequency Level(s) for specified clock (requires manual Perf level)',
type=str, metavar='LEVEL', nargs=2)
metavar=('TYPE','LEVEL'), nargs=2)
groupAction.add_argument('--setsclk', help='Set GPU Clock Frequency Level(s) (requires manual Perf level)',
type=int, metavar='LEVEL', nargs='+')
groupAction.add_argument('--setmclk', help='Set GPU Memory Clock Frequency Level(s) (requires manual Perf level)',
Expand Down Expand Up @@ -3173,7 +3173,7 @@ def save(deviceList, savefilepath):
if args.showenergycounter:
showEnergy(deviceList)
if args.setclock:
setClocks(deviceList, args.setclock[0], args.setclock[1])
setClocks(deviceList, args.setclock[0], [int(args.setclock[1])])
if args.setsclk:
setClocks(deviceList, 'sclk', args.setsclk)
if args.setmclk:
Expand Down

0 comments on commit 5d7c30e

Please sign in to comment.