Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for setting stable/profile perf levels #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python_smi_tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ Output options:
low (Keep values low, regardless of workload)
high (Keep values high, regardless of workload)
manual (Only use values defined by --setsclk and --setmclk)
stable_std (set sclk and mclk to fixed value for profiling)
stable_peak (set sclk and mclk to maximum for profiling)
stable_min_mclk (set mclk to minimum for profiling)
stable_min_sclk (set sclk to minimum for profiling)

--setoverdrive/--setmemoverdrive #:
***DEPRECATED IN NEWER KERNEL VERSIONS (use --setslevel/--setmlevel instead)***
Expand Down
3 changes: 2 additions & 1 deletion python_smi_tools/rocm_smi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,8 @@ def setPerformanceLevel(deviceList, level):
@param level: Performance Level to set
"""
printLogSpacer(' Set Performance Level ')
validLevels = ['auto', 'low', 'high', 'manual']
validLevels = ['auto', 'low', 'high', 'manual',
'stable_std', 'stable_peak', 'stable_min_mclk', 'stable_min_sclk']
for device in deviceList:
if level not in validLevels:
printErrLog(device, 'Unable to set Performance Level')
Expand Down