Renamed API amdsmi_dev_set_power_cap to

amdsmi_set_power_cap

grep -rli 'amdsmi_dev_set_power_cap' * | xargs -i@ sed -i
's/amdsmi_dev_set_power_cap/amdsmi_set_power_cap/g' @

Change-Id: I226f90f0fce12ea4f832a2ea46c3dc60f6e9fe23
This commit is contained in:
Deepak Mewar authored and Naveen Krishna Chatradhi committed 2023-05-11 10:41:48 -04:00
1 parent 258a21790b
commit 757765a1e3
9 files changed
+18 -18

No files matched your search

@@ -286,7 +286,7 @@ void TestMutualExclusion::Run(void) {
amdsmi_get_power_ave
amdsmi_dev_power_cap_get
amdsmi_dev_power_cap_range_get
amdsmi_dev_set_power_cap
amdsmi_set_power_cap
amdsmi_dev_get_power_profile_presets
amdsmi_dev_set_power_profile
amdsmi_dev_get_memory_total
@@ -121,7 +121,7 @@ void TestPowerCapReadWrite::Run(void) {
std::cout << "Setting new cap to " << new_cap << "..." << std::endl;
}
start = clock();
ret = amdsmi_dev_set_power_cap(processor_handles_[dv_ind], 0, new_cap);
ret = amdsmi_set_power_cap(processor_handles_[dv_ind], 0, new_cap);
end = clock();
cpu_time_used = ((double) (end - start)) * 1000000UL / CLOCKS_PER_SEC;
@@ -139,7 +139,7 @@ void TestPowerCapReadWrite::Run(void) {
std::cout << "Resetting cap to " << orig << "..." << std::endl;
}
ret = amdsmi_dev_set_power_cap(processor_handles_[dv_ind], 0, orig);
ret = amdsmi_set_power_cap(processor_handles_[dv_ind], 0, orig);
CHK_ERR_ASRT(ret)
ret = amdsmi_get_power_cap_info(processor_handles_[dv_ind], 0, &info);