From a9e6f40bbb4c3fc55498cd335380917468494efb Mon Sep 17 00:00:00 2001 From: Ori Messinger Date: Wed, 28 Apr 2021 12:42:34 -0400 Subject: [PATCH] ROCm SMI LIB: Add Default Power Cap To rsmitst Implement default GPU power cap functionality in rsmitst. It is available in the "rsmitstReadOnly.TestPowerRead" test, and is displayed as: "Default Power Cap: #uW" (where uW is microwatts). Signed-off-by: Ori Messinger Change-Id: I564ea3785f1a93dfd30587634057516549fa762c [ROCm/amdsmi commit: 5b42cdf7800bcef26116a35e1f2da736f7284174] --- projects/amdsmi/tests/rocm_smi_test/functional/power_read.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/amdsmi/tests/rocm_smi_test/functional/power_read.cc b/projects/amdsmi/tests/rocm_smi_test/functional/power_read.cc index b223482381..70f3b104d0 100755 --- a/projects/amdsmi/tests/rocm_smi_test/functional/power_read.cc +++ b/projects/amdsmi/tests/rocm_smi_test/functional/power_read.cc @@ -104,6 +104,11 @@ void TestPowerRead::Run(void) { IF_VERB(STANDARD) { std::cout << "\t**Current Power Cap: " << val_ui64 << "uW" <